1 user.module user_field_extra_fields()

Implements hook_field_extra_fields().

File

core/modules/user/user.module, line 191
Enables the user registration and login system.

Code

function user_field_extra_fields() {
  $return['user']['user'] = array(
    'form' => array(
      'account' => array(
        'label' => t('User name and password'),
        'description' => t('User module account form elements.'),
        'weight' => -10,
      ),
      'account_settings' => array(
        'label' => t('Account status and user roles'),
        'description' => t('User module account settings form elements.'),
        'weight' => 1,
      ),
      'timezone' => array(
        'label' => t('Timezone'),
        'description' => t('User module timezone form element.'),
        'weight' => 6,
      ),
    ),
    'display' => array(
      'member_for' => array(
        'label' => t('Member for'),
        'description' => t('User module \'member for\' view element.'),
        'weight' => 5,
      ),
    ),
  );

  return $return;
}