function hook_field_extra_fields_alter

Alter "pseudo-field" components on fieldable entities.

Parameters

$info: The associative array of 'pseudo-field' components.

See also

hook_field_extra_fields()

Related topics

1 function implements hook_field_extra_fields_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_test_field_extra_fields_alter in drupal/core/modules/field/tests/modules/field_test/field_test.module
Implements hook_field_extra_fields_alter().

File

drupal/core/modules/field/field.api.php, line 78

Code

function hook_field_extra_fields_alter(&$info) {

  // Force node title to always be at the top of the list by default.
  foreach (node_type_get_types() as $bundle) {
    if (isset($info['node'][$bundle->type]['form']['title'])) {
      $info['node'][$bundle->type]['form']['title']['weight'] = -20;
    }
  }
}