function webform_invitation_menu in Webform Invitation 7
Same name and namespace in other branches
- 7.2 webform_invitation.module \webform_invitation_menu()
Implements hook_menu().
File
- ./
webform_invitation.module, line 6
Code
function webform_invitation_menu() {
$items = array();
$items['node/%/invitation'] = array(
'title' => 'Invitation',
'page callback' => 'webform_invitation_settings_page',
'page arguments' => array(
1,
),
'access callback' => 'webform_invitation_access_check',
'access arguments' => array(
1,
),
'weight' => 10,
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
);
$items['node/%/invitation/settings'] = array(
'title' => 'Settings',
'page callback' => 'webform_invitation_settings_page',
'page arguments' => array(
1,
),
'access callback' => 'webform_invitation_access_check',
'access arguments' => array(
1,
),
'weight' => -1,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['node/%/invitation/codes'] = array(
'title' => 'List codes',
'page callback' => 'webform_invitation_codes_page',
'page arguments' => array(
1,
),
'access callback' => 'webform_invitation_access_check',
'access arguments' => array(
1,
),
'weight' => 0,
'type' => MENU_LOCAL_TASK,
);
$items['node/%/invitation/generate'] = array(
'title' => 'Generate',
'page callback' => 'webform_invitation_generate_page',
'page arguments' => array(
1,
),
'access callback' => 'webform_invitation_access_check',
'access arguments' => array(
1,
),
'weight' => 1,
'type' => MENU_LOCAL_TASK,
);
$items['node/%/invitation/download'] = array(
'title' => 'Download',
'page callback' => 'webform_invitation_download_file',
'page arguments' => array(
1,
),
'access callback' => 'webform_invitation_access_check',
'access arguments' => array(
1,
),
'weight' => 2,
'type' => MENU_LOCAL_TASK,
);
return $items;
}