You are here

function responsive_menu_form_menu_configure_alter in Responsive and off-canvas menu 7.3

Same name and namespace in other branches
  1. 7 responsive_menu.module \responsive_menu_form_menu_configure_alter()
  2. 7.2 responsive_menu.module \responsive_menu_form_menu_configure_alter()

Implements hook_form_FORM_ID_alter().

Used to add the responsive menu options to the menu settings page (/admin/structure/menu/settings).

File

./responsive_menu.module, line 9

Code

function responsive_menu_form_menu_configure_alter(&$form, &$form_state) {

  // Include the settings form and make sure its included when submitting.
  form_load_include($form_state, 'inc', 'responsive_menu', 'includes/responsive_menu.admin');

  // Append our form to the menu configure form.
  $form += responsive_menu_settings_form($form);

  // Add a custom submit handler to store the values.
  $form['#submit'][] = 'responsive_menu_settings_form_submit';
}