function cache_example_menu in Examples for Developers 7
Implements hook_menu().
Related topics
File
- cache_example/
cache_example.module, line 33 - Outlines how a module can use the Cache API.
Code
function cache_example_menu() {
$items = array();
$items['examples/cache_example'] = array(
'title' => 'Cache example',
'description' => 'Example of Drupal Cache API',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cache_example_page_form',
),
'access callback' => TRUE,
);
return $items;
}