Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. // print.module
  3. function print_menu()
  4. {
  5. $items = array();
  6.  
  7. $items['print/%node'] = array(
  8. 'title' => '',
  9. 'access arguments' => array('access content'),
  10. 'page arguments' => array(1),
  11. 'page callback' => 'print_process_print',
  12. );
  13.  
  14. return $items;
  15. }
  16.  
  17. function print_process_print(&$vars)
  18. {
  19. error_log(__FUNCTION__.' called');
  20. error_log('node: '.var_export($vars, true));
  21.  
  22. $vars['theme_hook_suggestions'][] = 'html__print';
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement