You are here

function addtocalendar_field_formatter_info_alter in Add To Calendar Button (AddEvent.com) 7.2

Same name and namespace in other branches
  1. 7 addtocalendar.module \addtocalendar_field_formatter_info_alter()

Implements hook_field_formatter_info_alter().

File

./addtocalendar.module, line 22
Contains module code.

Code

function addtocalendar_field_formatter_info_alter(&$info) {

  // Add a setting to a formatter type.
  if (isset($info['date_default'])) {
    $info['date_default']['settings'] += array(
      'addtocalendar_show' => '',
      'addtocalendar_settings' => '',
    );
  }
}