You are here

function ife_form_id_load in Inline Form Errors 7

Same name and namespace in other branches
  1. 6.2 ife.module \ife_form_id_load()
  2. 6 ife.module \ife_form_id_load()
  3. 7.2 ife.module \ife_form_id_load()

Menu loader function to fetch a form id.

2 calls to ife_form_id_load()
ife_form_alter in ./ife.module
Implements hook_form_alter().
ife_settings_form_validate in ./ife.settings.inc
IFE settings form validations

File

./ife.module, line 79
Drupal hooks

Code

function ife_form_id_load($form_id) {
  $form_ids = ife_load_form_ids();
  foreach ((array) $form_ids as $form_id_pattern => $form_settings) {
    if (ife_match_form_id($form_id, $form_id_pattern)) {
      return $form_settings;
    }
  }
  return FALSE;
}