1 token_example.module token_example_menu()

Implements hook_menu().

Related topics

File

modules/examples/token_example/token_example.module, line 33
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' => 'backdrop_get_form',
    'page arguments' => array('token_example_example_form'),
    'access callback' => TRUE,
  );
  return $items;
}