Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // The hook_theme()
- function mymod_theme() {
- return array(
- 'document' => array(
- 'variables' => array('document'),
- ),
- );
- }
- // The hook_menu() entry
- $items['%taxonomy_term/%node'] = array(
- 'title' => 'node_page_title',
- 'title arguments' => array('%node'),
- 'file' => $inc_callback,
- 'page callback' => '_mymod_callback',
- 'page arguments' => array(0,1),
- 'access callback' => TRUE,
- 'type' => MENU_CALLBACK,
- // The callback
- function _codoh_library_cat_cat_doc($term,$node) {
- $page = array('#tree' => True);
- $page = node_view($node, 'full');
- $page['#theme'] = 'document';
- return $page;
- }
- function theme_document($variables) {
- drupal_set_message('<pre>'.$variables.'</pre>');
- return 'scheisse';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement