function hook_field_info_alter

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 field.api.php hook_field_info_alter(&$info)
cle7 field.api.php hook_field_info_alter(&$info)
elmsmedia7 field.api.php hook_field_info_alter(&$info)
icor7 field.api.php hook_field_info_alter(&$info)
meedjum_blog7 field.api.php hook_field_info_alter(&$info)
mooc7 field.api.php hook_field_info_alter(&$info)

Perform alterations on Field API field types.

Parameters

$info: Array of information on field types exposed by hook_field_info() implementations.

Related topics

6 functions implement hook_field_info_alter()

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

cis_connector_field_info_alter in sites/all/modules/elmsln_contrib/cis_connector/cis_connector.module
Implements hook_field_info_alter().
date_repeat_field_field_info_alter in sites/all/modules/ulmus/date/date_repeat_field/date_repeat_field.module
Implements hook_field_info_alter().
entity_field_info_alter in sites/all/modules/ulmus/entity/includes/entity.property.inc
Implements hook_field_info_alter(). Defines default property types for core field types.
imagefield_focus_field_info_alter in sites/all/modules/ulmus/imagefield_focus/imagefield_focus.module
Implementation of hook_field_info_alter().
token_field_info_alter in sites/all/modules/ulmus/token/token.module
Implements hook_field_info_alter().

... See full list

File

modules/field/field.api.php, line 188

Code

function hook_field_info_alter(&$info) {
  // Add a setting to all field types.
  foreach ($info as $field_type => $field_type_info) {
    $info[$field_type]['settings'] += array(
      'mymodule_additional_setting' => 'default value',
    );
  }

  // Change the default widget for fields of type 'foo'.
  if (isset($info['foo'])) {
    $info['foo']['default widget'] = 'mymodule_widget';
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.