You are here

function menu_trail_by_path_form in Menu Trail By Path 7.2

Same name and namespace in other branches
  1. 7.3 menu_trail_by_path.admin.inc \menu_trail_by_path_form()

Form builder; create and display the admin configuration settings form.

1 string reference to 'menu_trail_by_path_form'
menu_trail_by_path_menu in ./menu_trail_by_path.module
Implements hook_menu()

File

./menu_trail_by_path.module, line 109
Expand menu items and set active-trail according to current path.

Code

function menu_trail_by_path_form($form, &$form_state) {
  $form['menu_trail_by_path_breadcrumb_handling'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable breadcrumb handling'),
    '#description' => t("If checked, breadcrumb will be set according to url path."),
    '#default_value' => variable_get('menu_trail_by_path_breadcrumb_handling', TRUE),
  );
  return system_settings_form($form);
}