function pdf_using_mpdf_menu in PDF using mPDF 7
Same name and namespace in other branches
- 7.2 pdf_using_mpdf.module \pdf_using_mpdf_menu()
Implements hook_menu().
File
- ./
pdf_using_mpdf.module, line 45 - Prints PDF for a given html node view.
Code
function pdf_using_mpdf_menu() {
$items['admin/config/user-interface/mpdf'] = array(
'title' => 'PDF using mPDF settings',
'description' => 'configuration of custom mPDF setting',
'page callback' => 'drupal_get_form',
'access callback' => 'user_access',
'access arguments' => array(
'administer mpdf settings',
),
'page arguments' => array(
'pdf_using_mpdf_config',
),
'weight' => -1,
'file' => 'pdf_using_mpdf.admin.inc',
);
$items['node/%node/pdf'] = array(
'title' => 'Generate PDF',
'page callback' => 'pdf_using_mpdf_generate_pdf',
'page arguments' => array(
1,
),
'access callback' => 'user_access',
'access arguments' => array(
'generate pdf using mpdf',
),
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
'file' => 'pdf_using_mpdf.pages.inc',
);
return $items;
}