function entity_print_menu in Entity Print 7
Implements hook_entity_print().
File
- ./
entity_print.module, line 13 - Print any entity.
Code
function entity_print_menu() {
$items['entityprint/%/%'] = array(
'title' => 'Print PDF',
'page callback' => 'entity_print_entity_to_pdf',
'page arguments' => array(
1,
2,
),
'type' => MENU_CALLBACK,
'access callback' => 'entity_print_access',
'access arguments' => array(
1,
2,
),
);
$items['entityprint/%/%/debug'] = array(
'title' => 'Print PDF Debug',
'page callback' => 'entity_print_entity_debug',
'page arguments' => array(
1,
2,
),
'type' => MENU_CALLBACK,
'access callback' => 'entity_print_access',
'access arguments' => array(
1,
2,
),
);
$items['admin/config/content/entityprint'] = array(
'title' => 'Entity Print',
'description' => 'Configure the settings for Entity Print.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'entity_print_settings_form',
),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'administer entity print',
),
'file' => 'entity_print.admin.inc',
);
return $items;
}