You are here

function title_field_info_alter in Title 7

Implements hook_field_info_alter().

File

./title.module, line 984

Code

function title_field_info_alter(&$info) {
  $supported_types = array(
    'taxonomy_term_reference' => TRUE,
  );
  foreach ($info as $field_type => &$field_type_info) {
    if (isset($supported_types[$field_type])) {
      if (!isset($field_type_info['settings'])) {
        $field_type_info['settings'] = array();
      }
      $field_type_info['settings'] += array(
        'options_list_callback' => 'title_taxonomy_allowed_values',
      );
    }
  }
}