From e998857eb8a5ef4d2ebe381a57c19b1b355fe4ef Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 19 Aug 2009 13:31:14 +0000 Subject: #516138 by yched, KarenS, quicksketch, bangpound, et al.: CC-FREAKING-K IN CORE! OH YEAH! :D --- modules/user/user.module | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 88a661ef7..2bc1dfb1d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -120,6 +120,33 @@ function user_field_build_modes($obj_type) { return $modes; } +/** + * Implement hook_field_extra_fields(). + */ +function user_field_extra_fields($bundle) { + $extra = array(); + + if ($bundle == 'user') { + $extra['account'] = array( + 'label' => 'User name and password', + 'description' => t('User module account form elements'), + 'weight' => -10, + ); + $extra['timezone'] = array( + 'label' => 'Timezone', + 'description' => t('User module timezone form element.'), + 'weight' => 6, + ); + $extra['summary'] = array( + 'label' => 'History', + 'description' => t('User module history view element.'), + 'weight' => 5, + ); + } + + return $extra; +} + function user_external_load($authname) { $uid = db_query("SELECT uid FROM {authmap} WHERE authname = :authname", array(':authname' => $authname))->fetchField(); @@ -1344,6 +1371,11 @@ function user_menu() { 'page arguments' => array('user_admin_settings'), 'access arguments' => array('administer users'), ); + $items['admin/settings/user/settings'] = array( + 'title' => 'Settings', + 'type' => MENU_DEFAULT_LOCAL_TASK, + 'weight' => -10, + ); // Permission administration pages. $items['admin/settings/permissions'] = array( @@ -2430,6 +2462,10 @@ function user_help($path, $arg) {
  • Anonymous user: this role is used for users that don\'t have a user account or that are not authenticated.
  • Authenticated user: this role is automatically granted to all logged in users.
  • ', array('@permissions' => url('admin/settings/permissions'))); + case 'admin/settings/user/fields': + return '

    ' . t('This form lets administrators add, edit, and arrange fields for storing user data.') . '

    '; + case 'admin/settings/user/display': + return '

    ' . t('This form lets administrators configure how fields should be displayed when rendering a user profile page.') . '

    '; case 'admin/people/search': return '

    ' . t('Enter a simple pattern ("*" may be used as a wildcard match) to search for a username or e-mail address. For example, one may search for "br" and Drupal might return "brian", "brad", and "brenda@example.com".') . '

    '; } -- cgit v1.2.3