function pdfpreview_menu in PDFPreview 6
Same name and namespace in other branches
- 7.2 pdfpreview.module \pdfpreview_menu()
- 7 pdfpreview.module \pdfpreview_menu()
Implements hook_menu()
File
- ./
pdfpreview.module, line 97 - This module creates a formatter for CCK filefields that shows a snapshot of the first page of pdf files as link to the file.
Code
function pdfpreview_menu() {
$items = array(
'admin/settings/pdfpreview' => array(
'title' => 'Configure PDF Preview',
'description' => 'Configure PDF Preview settings',
'access arguments' => array(
'administer content',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pdfpreview_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
),
);
return $items;
}