You are here

function om_tools_form_alter in OM Tools 8

Same name and namespace in other branches
  1. 8.2 om_tools.module \om_tools_form_alter()
  2. 6.2 om_tools.module \om_tools_form_alter()
  3. 6 om_tools.module \om_tools_form_alter()
  4. 7.2 om_tools.module \om_tools_form_alter()
  5. 7 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);
    }
  }
}