You are here

function sliderfield_example_menu in SliderField 7.2

Implements hook_menu().

Here we set up the URLs (menu entries) for the form examples. Note that most of the menu items have page callbacks and page arguments set, with page arguments set to be functions in external files.

File

sliderfield_example/sliderfield_example.module, line 16
Module's main file.

Code

function sliderfield_example_menu() {
  $items = array();
  $items['examples/sliderfield'] = array(
    'title' => 'SliderField Examples',
    'page callback' => 'sliderfield_example_intro',
    'access callback' => TRUE,
    'expanded' => TRUE,
  );
  $items['examples/sliderfield/custom_form'] = array(
    'title' => 'Custom Form Sample',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sliderfield_example_custom_form',
    ),
    'access callback' => TRUE,
    'description' => 'Usage example for custom form',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}