function referral_menu in User Referral 6
Same name and namespace in other branches
- 5 referral.module \referral_menu()
- 7 referral.module \referral_menu()
File
- ./
referral.module, line 42
Code
function referral_menu() {
$items = array();
$items['admin/settings/referral'] = array(
'title' => t('User Referral'),
'description' => t('Settings for the User Referral module.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'referral_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['referral'] = array(
'page callback' => 'referral_get',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['referral/view'] = array(
'page callback' => 'referral_view',
'title' => t('Your Referrals'),
'access arguments' => array(
REFERRAL_PERM_USE,
),
'type' => MENU_SUGGESTED_ITEM,
);
$items['admin/reports/referral'] = array(
'title' => t('Referrals summary'),
'page callback' => 'referral_admin_view_summary',
'access arguments' => array(
REFERRAL_PERM_ADMIN,
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/referral/summary'] = array(
'title' => t('Referrals summary'),
'page callback' => 'referral_admin_view_summary',
'access arguments' => array(
REFERRAL_PERM_ADMIN,
),
'weight' => 1,
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/referral/details'] = array(
'page callback' => 'referral_admin_view_details',
'access arguments' => array(
REFERRAL_PERM_ADMIN,
),
'weight' => 2,
'type' => MENU_CALLBACK,
);
$items['admin/reports/referral/unflagged'] = array(
'title' => t('Unflagged referrals'),
'page callback' => 'referral_admin_view_unflagged',
'access arguments' => array(
REFERRAL_PERM_ADMIN,
),
'weight' => 3,
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/referral/roles'] = array(
'title' => t('Referral roles'),
'page callback' => 'referral_admin_view_roles',
'access arguments' => array(
REFERRAL_PERM_ADMIN,
),
'type' => MENU_CALLBACK,
);
$items['admin/referral/flag'] = array(
'page callback' => 'referral_admin_flag',
'access arguments' => array(
REFERRAL_PERM_ADMIN,
),
'type' => MENU_CALLBACK,
);
return $items;
}