You are here

function date_api_date_formats in Date 6.2

Implementation of hook_date_formats().

Return value

An array of date formats with attributes 'type' (short, medium or long), 'format' (the format string) and 'locales'. The 'locales' attribute is an array of locales, which can include both 2 character language codes like 'en', 'fr', but also 5 character language codes like 'en-gb' and 'en-us'.

File

./date_api.module, line 414
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_date_formats() {
  include_once './' . drupal_get_path('module', 'date_api') . '/date_api_formats_list.inc';
  return _date_api_date_formats_list();
}