You are here

function linked_field_field_formatter_info_alter in Linked Field 7

Implements hook_field_formatter_info_alter().

File

./linked_field.module, line 108
Main file of Linked Field module.

Code

function linked_field_field_formatter_info_alter(&$infos) {
  foreach ($infos as &$info) {

    // Add a settings array if no settings were found.
    if (!isset($info['settings']) || !is_array($info['settings'])) {
      $info['settings'] = array();
    }
    $info['settings'] += array(
      'linked_field' => array(
        'linked' => 0,
        'destination' => '',
        'advanced' => array(
          'title' => '',
          'target' => '',
          'class' => '',
          'rel' => '',
          'text' => '',
        ),
      ),
    );
  }
}