You are here

function test_form_node_form_alter in Coder 8.2

Same name and namespace in other branches
  1. 8.3 tests/DrupalPractice/FunctionDefinitions/test.module \test_form_node_form_alter()
  2. 8.3.x tests/DrupalPractice/FunctionDefinitions/test.module \test_form_node_form_alter()

Implements hook_form_alter().

File

coder_sniffer/DrupalPractice/Test/FunctionDefinitions/test.module, line 33

Code

function test_form_node_form_alter(&$form, &$form_state, $form_id) {
  $enabled_menus = variable_get('menu_options_' . $form['#node']->type, array(
    'main-menu',
  ));

  // Skip if there's no enabled menus available.
  if (empty($enabled_menus)) {
    return;
  }
}