You are here

function timeago_date_formats in Timeago 7.2

Implements hook_date_formats().

File

./timeago.module, line 264
Adds support for the Timeago jQuery library.

Code

function timeago_date_formats() {
  return array(
    array(
      'type' => 'short',
      'format' => TIMEAGO_FORMAT_SHORT_US,
    ),
    array(
      'type' => 'short',
      'format' => TIMEAGO_FORMAT_SHORT,
    ),
    array(
      'type' => 'medium',
      'format' => TIMEAGO_FORMAT_MEDIUM_US,
    ),
    array(
      'type' => 'medium',
      'format' => TIMEAGO_FORMAT_MEDIUM,
    ),
    array(
      'type' => 'long',
      'format' => TIMEAGO_FORMAT_LONG_US,
    ),
    array(
      'type' => 'long',
      'format' => TIMEAGO_FORMAT_LONG,
    ),
  );
}