You are here

function fieldset_helper_menu in Fieldset helper 6

Same name and namespace in other branches
  1. 6.2 fieldset_helper.module \fieldset_helper_menu()
  2. 7.2 fieldset_helper.module \fieldset_helper_menu()

Implementation of hook_menu().

File

./fieldset_helper.module, line 72
Saves the collapsed state of a Drupal collapsible fieldset.

Code

function fieldset_helper_menu() {
  $items['admin/settings/fieldset_helper'] = array(
    'title' => 'Fieldset helper',
    'description' => 'Settings to save FAPI collapsible fieldset state',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fieldset_helper_admin_settings',
    ),
    'file' => 'fieldset_helper.admin.inc',
    'access arguments' => array(
      'administer fieldset state',
    ),
  );
  $items['admin/settings/fieldset_helper/test'] = array(
    'title' => 'Fieldset helper test',
    'description' => 'Test page for saving FAPI collapsible fieldset state',
    'page callback' => 'fieldset_helper_test',
    'file' => 'fieldset_helper.admin.inc',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}