Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // print.module
- function print_menu()
- {
- $items = array();
- $items['print/%node'] = array(
- 'title' => '',
- 'access arguments' => array('access content'),
- 'page arguments' => array(1),
- 'page callback' => 'print_process_print',
- );
- return $items;
- }
- function print_process_print(&$vars)
- {
- error_log(__FUNCTION__.' called');
- error_log('node: '.var_export($vars, true));
- $vars['theme_hook_suggestions'][] = 'html__print';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement