Early Form Alter

Categories

Component ID

501250

Component name

Early Form Alter

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2358

Component created

Component changed

Component body

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