profile_menu

Versions
4.6 – 5
profile_menu($may_cache)
6 – 7
profile_menu()

Implementation of hook_menu().

Code

modules/profile.module, line 30

<?php
function profile_menu($may_cache) {
  global $user;
  $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',
      'access' => user_access('administer users'));
    $items[] = array('path' => 'admin/settings/profile/add', 'title' => t('add field'),
      'callback' => 'profile_admin_add',
      'access' => user_access('administer users'),
      'type' => MENU_CALLBACK);
    $items[] = array('path' => 'admin/settings/profile/edit', 'title' => t('edit field'),
      'callback' => 'profile_admin_edit',
      'access' => user_access('administer users'),
      'type' => MENU_CALLBACK);
    $items[] = array('path' => 'admin/settings/profile/delete', 'title' => t('delete field'),
      'callback' => 'profile_admin_delete',
      'access' => user_access('administer users'),
      'type' => MENU_CALLBACK);
  }

  return $items;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.