function webform_invitation_menu in Webform Invitation 7.2
Same name and namespace in other branches
- 7 webform_invitation.module \webform_invitation_menu()
Implements hook_menu().
File
- ./
webform_invitation.module, line 6
Code
function webform_invitation_menu() {
$items = array();
$items['node/%webform_menu/webform/invitation-settings'] = array(
'title' => 'Invitation Settings',
'page callback' => 'webform_invitation_settings_page',
'page arguments' => array(
1,
),
'access callback' => 'node_access',
'access arguments' => array(
'update',
1,
),
'weight' => 11,
'type' => MENU_LOCAL_TASK,
);
$items['node/%webform_menu/webform/invitation-codes'] = array(
'title' => 'Invitation Codes',
'page callback' => 'webform_invitation_generate_page',
'page arguments' => array(
1,
),
'access callback' => 'node_access',
'access arguments' => array(
'update',
1,
),
'weight' => 12,
'type' => MENU_LOCAL_TASK,
);
$items['node/%webform_menu/webform/invitation-download'] = array(
'title' => 'Download Codes',
'page callback' => 'webform_invitation_download_file',
'page arguments' => array(
1,
),
'access callback' => 'node_access',
'access arguments' => array(
'update',
1,
),
);
return $items;
}