You are here

function profile_menu in Drupal 4

Same name and namespace in other branches
  1. 5 modules/profile/profile.module \profile_menu()
  2. 6 modules/profile/profile.module \profile_menu()
  3. 7 modules/profile/profile.module \profile_menu()

Implementation of hook_menu().

File

modules/profile.module, line 52
Support for configurable user profiles.

Code

function profile_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'profile',
      'title' => t('user list'),
      'callback' => 'profile_browse',
      'access' => user_access('access user profiles'),
      'type' => MENU_SUGGESTED_ITEM,
    );
    $items[] = array(
      'path' => 'admin/settings/profile',
      'title' => t('profiles'),
      'callback' => 'profile_admin_overview',
    );
    $items[] = array(
      'path' => 'admin/settings/profile/add',
      'title' => t('add field'),
      'callback' => 'profile_field_form',
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/profile/edit',
      'title' => t('edit field'),
      'callback' => 'profile_field_form',
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'admin/settings/profile/delete',
      'title' => t('delete field'),
      'callback' => 'profile_field_delete',
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}