function epub_menu in Epub 6
Implementation of hook_menu().
File
- ./
epub.module, line 56 - Provide ePub content type and enable the creation of ePub files from book contents.
Code
function epub_menu() {
$items = array();
$items['epub/book_list_autocomplete'] = array(
'title' => 'Book List Autocomplete Callback',
'page callback' => 'epub_list_books_autocomplete',
'access arguments' => array(
'administer epub',
),
'type' => MENU_CALLBACK,
);
$items['admin/content/epub'] = array(
'title' => 'ePubs',
'description' => "Manage your site' s ePubs",
'page callback' => 'epub_admin_overview',
'access arguments' => array(
'administer epub',
),
'file' => 'epub.admin.inc',
);
$items['admin/content/epub/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/content/epub/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'epub_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'file' => 'epub.admin.inc',
);
$items['node/%/epub'] = array(
'title callback' => 'epub_read_title_callback',
'title arguments' => array(
1,
),
'description' => 'Read an ePub',
'page callback' => 'epub_read_page_callback',
'page arguments' => array(
1,
),
'access callback' => 'epub_read_access_callback',
'access arguments' => array(
1,
'access epub',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
return $items;
}