You are here

function date_repeat_field_field_formatter_info_alter in Date 8

Same name and namespace in other branches
  1. 7.3 date_repeat_field/date_repeat_field.module \date_repeat_field_field_formatter_info_alter()
  2. 7.2 date_repeat_field/date_repeat_field.module \date_repeat_field_field_formatter_info_alter()

Implements hook_field_formatter_info_alter().

This hook lets us add settings to the formatters.

File

date_repeat_field/date_repeat_field.module, line 579
Creates the option of Repeating date fields and manages Date fields that use the Date Repeat API.

Code

function date_repeat_field_field_formatter_info_alter(&$info) {
  if (isset($info['date_default'])) {
    $info['date_default']['settings'] += array(
      'show_repeat_rule' => 'show',
    );
  }
}