function views_pdf_menu in Views PDF 7.3
Same name and namespace in other branches
- 7 views_pdf.module \views_pdf_menu()
Implements hook_menu().
File
- ./
views_pdf.module, line 20 - PDF Views allows the creation of PDF's directly from a view. Without the creation of HTML first.
Code
function views_pdf_menu() {
$items = array();
$items['admin/structure/views/pdfs'] = array(
'title' => t('PDF Templates'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'views_pdf_templates',
),
'access arguments' => array(
'administer views',
),
'file' => 'views_pdf.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/structure/views/pdfs/delete/%'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'views_pdf_template_delete',
5,
),
'access arguments' => array(
'administer views',
),
'file' => 'views_pdf.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}