Early Form Alter

justindodge - June 24, 2009 - 19:54
Early Form Alter

Provides a new Drupal hook: hook_early_form_alter.

This hook is identical to Drupal's hook_form_alter in every way except that it should always be called before any other module's hook_form_alter is called. Also provides hook_early_form_(form_id)_alter. This is accomplished using weighting in the system table.

This will give developers a chance to alter form data before any other module has made it's own alterations.

See http://api.drupal.org/api/function/hook_form_alter/6 for documentation for Drupal's hook_form_alter.

See also:
Late Form Alter
http://drupal.org/project/late_form_alter

Releases

Official releasesDateSizeLinksStatus
6.x-1.02009-Jun-246.55 KBRecommended for 6.xThis is currently the recommended release for 6.x.


 
 

Drupal is a registered trademark of Dries Buytaert.