function hook_date_formats_alter
hook_date_formats_alter(&$formats)
Alter date formats declared by another module.
Called by _system_date_format_types_build() to allow modules to alter the return values from implementations of hook_date_formats().
Related topics
File
- modules/system/system.api.php, line 4225
- Hooks provided by Drupal core and the System module.
Code
function hook_date_formats_alter(&$formats) { foreach ($formats as $id => $format) { $formats[$id]['locales'][] = 'en-ca'; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_date_formats_alter/7.x