You are here

function multiselect_fapi_example_menu in Multiselect 7

Implements hook_menu() to set up the URLs (menu entries) for the form examples.

File

multiselect_fapi_example/multiselect_fapi_example.module, line 7

Code

function multiselect_fapi_example_menu() {
  $items = array();
  $items['multiselect_fapi_example'] = array(
    'title' => 'Form API Example of Multiselect Widget',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'multiselect_fapi_example_display',
    ),
    'access callback' => TRUE,
    'description' => 'Simple form with a multiselect widget and a submit button. Saves to the variables table.',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}