You are here

function publication_date_field_formatter_info_alter in Publication Date 8.2

Implements hook_field_formatter_info_alter().

File

./publication_date.module, line 83
Add a field to nodes containing the publication date.

Code

function publication_date_field_formatter_info_alter(array &$info) {
  $info['timestamp']['field_types'][] = 'published_at';
  $info['timestamp_ago']['field_types'][] = 'published_at';
}