function simpleads_campaigns_menu in SimpleAds 7
Implements hook_menu().
File
- modules/
simpleads_campaigns/ simpleads_campaigns.module, line 35
Code
function simpleads_campaigns_menu() {
$items = array();
$items['admin/content/simpleads_campaigns/create_campaign'] = array(
'title' => 'Create new Ad Campaign',
'page callback' => '_simpleads_campaign_new',
'access callback' => '_simpleads_access_callback',
'weight' => 17,
'file' => 'campaigns.admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/content/simpleads_campaigns'] = array(
'title' => 'Ad Campaigns',
'page callback' => '_simpleads_campaign_listing',
'access arguments' => array(
'access ad campaings',
),
'weight' => 17,
'file' => 'campaigns.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/simpleads_campaigns/%simpleadsid'] = array(
'title' => 'Campaign Details',
'page callback' => '_simpleads_campaign_details',
'page arguments' => array(
3,
),
'access arguments' => array(
'access ad campaings',
),
'weight' => 17,
'file' => 'campaigns.admin.inc',
'type' => MENU_LOCAL_TASK,
);
return $items;
}