function spam_form_alter in Spam 5.3
Same name and namespace in other branches
- 6 spam.module \spam_form_alter()
Drupal form_alter() hook.
File
- ./
spam.module, line 607
Code
function spam_form_alter($form_id, &$form) {
foreach (module_list() as $module) {
// For PHP4, allows modules to update $form.
$function = $module . '_spamapi_form_alter';
if (function_exists($function)) {
$function($form_id, $form);
}
// Alternative method, for modules that don't need to update $form.
$function = $module . '_spamapi';
if (function_exists($function)) {
$function('process_form', $form_id, $form);
}
}
}