You are here

function date_format_type_delete in Date 6.2

Delete a date format type from the database.

Parameters

$date_format_type: The date format type name.

1 call to date_format_type_delete()
date_api_delete_format_type_form_submit in ./date_api.admin.inc
Delete a configured date format type.

File

./date_api.module, line 1997
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_format_type_delete($date_format_type) {
  db_query("DELETE FROM {date_formats} WHERE type = '%s'", $date_format_type);
  db_query("DELETE FROM {date_format_types} WHERE type = '%s'", $date_format_type);
  db_query("DELETE FROM {date_format_locale} WHERE type = '%s'", $date_format_type);
}