function custom_pub_menu in Custom Publishing Options 7
Same name and namespace in other branches
- 6 custom_pub.module \custom_pub_menu()
Implements hook_menu().
File
- ./
custom_pub.module, line 56 - Adds the ability to add Custom publishing options to the node Add/Edit forms.
Code
function custom_pub_menu() {
$items['admin/structure/custom_pub'] = array(
'title' => 'Custom Publishing Options',
'page callback' => 'custom_pub_admin',
'access arguments' => array(
'administer content types',
),
'description' => 'Add and remove custom publishing options from the Node form(s).',
'file' => 'custom_pub.admin.inc',
);
$items['admin/structure/custom_pub/list'] = array(
'title' => 'Overview',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/structure/custom_pub/add'] = array(
'title' => 'Add a publishing option',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'custom_pub_add',
),
'access arguments' => array(
'administer content types',
),
'description' => 'Add and remove custom publishing options from the Node form(s).',
'file' => 'custom_pub.admin.inc',
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
);
return $items;
}