system_date_formats_rebuild
function system_date_formats_rebuild
system_date_formats_rebuild()
Resets the database cache of date formats and saves all new date formats.
File
- modules/system/system.module, line 3648
- Configuration system that lets administrators modify the workings of the site.
Code
function system_date_formats_rebuild() { drupal_static_reset('system_get_date_formats'); $date_formats = system_get_date_formats(NULL); foreach ($date_formats as $type => $formats) { foreach ($formats as $format => $info) { system_date_format_save($info); } } // Rebuild configured date formats locale list. drupal_static_reset('system_date_format_locale'); system_date_format_locale(); _system_date_formats_build(); }
© 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.module/function/system_date_formats_rebuild/7.x