You are here

function token_example_menu in Examples for Developers 7

Same name and namespace in other branches
  1. 6 token_example/token_example.module \token_example_menu()

Implements hook_menu().

Related topics

File

token_example/token_example.module, line 35
An example module showing how to define and use tokens.

Code

function token_example_menu() {
  $items['examples/token'] = array(
    'title' => 'Token example',
    'description' => 'Test replacement tokens in real time.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'token_example_example_form',
    ),
    'access callback' => TRUE,
  );
  return $items;
}