function hook_date_formats_alter
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
1 invocation of hook_date_formats_alter()
- _system_date_formats_build in modules/system/ system.module 
- Builds and returns information about available date formats.
File
- 
              modules/system/ system.api.php, line 4241 
Code
function hook_date_formats_alter(&$formats) {
  foreach ($formats as $id => $format) {
    $formats[$id]['locales'][] = 'en-ca';
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
