You are here

function variable_example_menu in Variable 7.2

Same name and namespace in other branches
  1. 7 variable_example/variable_example.module \variable_example_menu()

Implements hook_menu().

File

variable_example/variable_example.module, line 25

Code

function variable_example_menu() {
  $items['admin/config/system/variable_example'] = array(
    'title' => 'Variable example',
    'description' => 'Example of auto generated settings form.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'variable_group_form',
      'variable_example',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['variable/example'] = array(
    'title' => 'Variable example',
    'description' => 'List some variables.',
    'page callback' => 'variable_example_page_list',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['variable/realm/%/%'] = array(
    'title' => 'Variable example realm',
    'description' => 'Example of variable realms.',
    'page callback' => 'variable_example_page_realm',
    'page arguments' => array(
      2,
      3,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}