function om_tools_form_alter in OM Tools 7
Same name and namespace in other branches
- 8.2 om_tools.module \om_tools_form_alter()
- 8 om_tools.module \om_tools_form_alter()
- 6.2 om_tools.module \om_tools_form_alter()
- 6 om_tools.module \om_tools_form_alter()
- 7.2 om_tools.module \om_tools_form_alter()
Implementation of hook_form_alter().
_state _id
Parameters
$form:
Return value
array()
File
- ./
om_tools.module, line 104 - This is a collection of OM Tools.
Code
function om_tools_form_alter(&$form, &$form_state, $form_id) {
$tools = om_tools_get();
foreach ($tools as $key => $tool_name) {
include_once drupal_get_path('module', 'om_tools') . '/tools/' . $tool_name . '/' . $tool_name . '.inc';
$function = 'om_' . $tool_name . '_alter';
if (function_exists($function)) {
$function($form, $form_state, $form_id);
}
}
}