You are here

function token_example_menu in Examples for Developers 6

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

Implements hook_menu().

Related topics

File

token_example/token_example.module, line 29
The Token API module.

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;
}