function theming_example_menu in Examples for Developers 6
Same name and namespace in other branches
- 7 theming_example/theming_example.module \theming_example_menu()
- 3.x modules/theming_example/theming_example.module \theming_example_menu()
Implements hook_menu().
File
- theming_example/
theming_example.module, line 18 - Explains how a module declares theme functions, preprocess functions, and templates.
Code
function theming_example_menu() {
$items['examples/theming_example'] = array(
'title' => 'Basic Theming Example',
'description' => 'Some theming examples.',
'page callback' => 'theming_example_basic_content',
'access callback' => TRUE,
'access arguments' => array(
'access content',
),
);
$items['examples/theming_example/theming_example_with_template'] = array(
'title' => 'Theming with a template and preprocess function',
'page callback' => 'theming_example_with_template',
'access arguments' => array(
'access content',
),
'weight' => 1,
);
return $items;
}