Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Implementation of hook_menu()
- */
- function custom_example_menu(){
- $items['foo/bar'] = array(
- 'title' => 'Page Title',
- 'description' => 'Simple custom hook_menu() implementation.',
- 'page callback' => 'my_page_function',
- 'access arguments' => array('access content'),
- );
- return $items;
- }
- /*
- * Returns custom content to Drupal
- */
- function my_page_function(){
- return theme('my_custom_template');
- }
- /*
- * Implementation of hook_theme().
- */
- function custom_example_theme(){
- return array(
- 'my_custom_template' => array(
- 'template' => 'custom-page',
- ),
- );
- }
- <html>
- <body>
- <p>hello</p>
- </body>
- </html>
Add Comment
Please, Sign In to add comment