You are here

function weather_date_formats in Weather 7.3

Same name and namespace in other branches
  1. 7.2 weather.module \weather_date_formats()

Implements hook_date_formats().

File

./weather.module, line 614
Display current weather data from many places in the world.

Code

function weather_date_formats() {
  $formats = array();
  $formats[] = array(
    'type' => 'weather',
    // e.g. March 6, 2014.
    'format' => 'F j, Y',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. March 6.
    'format' => 'F j',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. 2014/03/06.
    'format' => 'Y/m/d',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. 03/06.
    'format' => 'm/d',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. 6. March 2014.
    'format' => 'j. F Y',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. 6. March.
    'format' => 'j. F',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. 06.03.2014.
    'format' => 'd.m.Y',
    'locales' => array(
      '',
    ),
  );
  $formats[] = array(
    'type' => 'weather',
    // e.g. 06.03.
    'format' => 'd.m.',
    'locales' => array(
      '',
    ),
  );
  return $formats;
}