I am writing a custom module for my project which handles a list of content (from custom db table) and content addition, following is my code.
function cp_menu() {
$items = array();
$items['admin/structure/package'] = array(
'title' => t('Packages'),
'page callback' => 'cp_packages_list',
'access arguments' => array('administer access control'),
'description' => t('Packages'),
'type' => MENU_CALLBACK,
);
$items['admin/structure/package/add'] = array(
'title' => t('Add package'),
'page callback' => 'cp_form',
'access arguments' => array('administer access control'),
'description' => t('Add package'),
'type' => MENU_CALLBACK,
);
return $items;
}
function cp_packages_list(){
return 'this is a test page';
}
function cp_form() {
return array('#markup'=>drupal_get_form('cp_my_form'));
}
it is working properly, but i want to show action links (add content type) at top of page like
How can i add action links on page?
my action links would be ‘Add package’ and ‘View orders’