You are here

function field_group_field_extra_fields in Field Group 7

Implements hook_field_extra_fields().

File

./field_group.module, line 1376
Fieldgroup module.

Code

function field_group_field_extra_fields() {
  $extra = array();
  $extra['user']['user'] = array(
    'form' => array(),
  );

  // User picture field to integrate with user module.
  if (variable_get('user_pictures', 0)) {
    $extra['user']['user']['form']['picture'] = array(
      'label' => t('Picture'),
      'description' => t('User picture'),
      'weight' => 5,
    );
  }

  // Field to itegrate with overlay module.
  if (module_exists('overlay')) {
    $extra['user']['user']['form']['overlay_control'] = array(
      'label' => t('Administrative overlay'),
      'description' => t('Administrative overlay'),
      'weight' => 5,
    );
  }

  // Field to itegrate with contact module.
  if (module_exists('contact')) {
    $extra['user']['user']['form']['contact'] = array(
      'label' => t('Contact'),
      'description' => t('Contact user element'),
      'weight' => 5,
    );
  }

  // Field to integrate with the locale module.
  if (module_exists('locale')) {
    $extra['user']['user']['form']['locale'] = array(
      'label' => t('Language settings'),
      'description' => t('Language settings for the user account.'),
      'weight' => 5,
    );
  }

  // Field to integrate with the wysiwyg module on user settings.
  if (module_exists('wysiwyg')) {
    $extra['user']['user']['form']['wysiwyg'] = array(
      'label' => t('Wysiwyg status'),
      'description' => t('Text formats enabled for rich-text editing'),
      'weight' => 5,
    );
  }
  return $extra;
}