function field_field_widget_info_alter

Implements hook_field_widget_info_alter().

Related topics

File

drupal/core/modules/field/field.module, line 327
Attach custom data fields to Drupal entities.

Code

function field_field_widget_info_alter(&$info) {

  // Add the Hidden widget to all field types.
  $info['hidden']['field_types'] = array_keys(field_info_field_types());
}