On this page
function system_date_format_type_delete
system_date_format_type_delete($type)
Deletes a date type from the database.
Parameters
$type: The machine-readable name of the date type.
File
- modules/system/system.module, line 3885
- Configuration system that lets administrators modify the workings of the site.
Code
function system_date_format_type_delete($type) {
db_delete('date_formats')
->condition('type', $type)
->execute();
db_delete('date_format_type')
->condition('type', $type)
->execute();
db_delete('date_format_locale')
->condition('type', $type)
->execute();
}
© 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_format_type_delete/7.x