Changing the hook execution sequence of form hook.

 

Generally in drupal modules are executed in as per the weight in the specified by the system table. 

If two module has the same weight then modules are executed alphabetical order based on the name of module. 

 
During working on one of my project, I was working with workflow module. 

New version of workflow module adds Target State radio buttons on node form. I wanted to move these radio buttons to vertical tabs in node creation form. 

I created a module for the form_alter function. I named my module as my_module.module.

Multiple file upload usind Drupal 7 Form API

Some days ago I was working with very strange situation. I was implementing the multiple file upload. I googled it and found many solution like plupload and html5 upload any many more…

But I was curious whether can I implement with drupal form API or not. After digging little bit what I found was really interesting and awesome solution. Though I implemented using plupload but this solution using Drupal Form API is too good..

Here is how I achieved it..

I was integrating it in filedepot module, and in this module file upload is handled by the custom Ctools file upload form, so i have to do

Tags: