function theming_example_menu

Same name in other branches
  1. 3.x modules/theming_example/theming_example.module \theming_example_menu()
  2. 7.x-1.x theming_example/theming_example.module \theming_example_menu()

Implements hook_menu().

The Menu Example provides extensive examples for hook_menu().

Related topics

File

modules/theming_example/theming_example.module, line 75

Code

function theming_example_menu() {
    $items['examples/theming_example'] = [
        'title' => 'Theming Example',
        'description' => 'Some theming examples.',
        'page callback' => 'theming_example_page',
        'access callback' => TRUE,
        'access arguments' => [
            'access content',
        ],
    ];
    $items['examples/theming_example/theming_example_list_page'] = [
        'title' => 'Theming a list',
        'page callback' => 'theming_example_list_page',
        'access arguments' => [
            'access content',
        ],
        'weight' => 1,
    ];
    $items['examples/theming_example/theming_example_select_form'] = [
        'title' => 'Theming a form (select form)',
        'page callback' => 'drupal_get_form',
        'page arguments' => [
            'theming_example_select_form',
        ],
        'access arguments' => [
            'access content',
        ],
        'weight' => 2,
    ];
    $items['examples/theming_example/theming_example_text_form'] = [
        'title' => 'Theming a form (text form)',
        'page callback' => 'drupal_get_form',
        'page arguments' => [
            'theming_example_text_form',
        ],
        'access arguments' => [
            'access content',
        ],
        'weight' => 3,
    ];
    return $items;
}