function profile_menu in Drupal 7
Same name and namespace in other branches
- 4 modules/profile.module \profile_menu()
- 5 modules/profile/profile.module \profile_menu()
- 6 modules/profile/profile.module \profile_menu()
Implements hook_menu().
File
- modules/
profile/ profile.module, line 79 - Support for configurable user profiles.
Code
function profile_menu() {
$items['profile'] = array(
'title' => 'User list',
'page callback' => 'profile_browse',
'access arguments' => array(
'access user profiles',
),
'file' => 'profile.pages.inc',
'type' => MENU_SUGGESTED_ITEM,
);
$items['admin/config/people/profile'] = array(
'title' => 'Profiles',
'description' => 'Create customizable fields for your users.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'profile_admin_overview',
),
'access arguments' => array(
'administer users',
),
'file' => 'profile.admin.inc',
);
$items['admin/config/people/profile/add'] = array(
'title' => 'Add field',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'profile_field_form',
),
'access arguments' => array(
'administer users',
),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'file' => 'profile.admin.inc',
);
$items['admin/config/people/profile/autocomplete'] = array(
'title' => 'Profile category autocomplete',
'page callback' => 'profile_admin_settings_autocomplete',
'access arguments' => array(
'administer users',
),
'file' => 'profile.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/people/profile/edit'] = array(
'title' => 'Edit field',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'profile_field_form',
),
'access arguments' => array(
'administer users',
),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'file' => 'profile.admin.inc',
);
$items['admin/config/people/profile/delete'] = array(
'title' => 'Delete field',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'profile_field_delete',
),
'access arguments' => array(
'administer users',
),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'file' => 'profile.admin.inc',
);
$items['profile/autocomplete'] = array(
'title' => 'Profile autocomplete',
'page callback' => 'profile_autocomplete',
'access arguments' => array(
'access user profiles',
),
'file' => 'profile.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}