system_date_format_type_delete

7 system.module system_date_format_type_delete($type)
8 system.module system_date_format_type_delete($type)

Deletes a date type from the database.

Parameters

$type: The machine-readable name of the date type.

1 call to system_date_format_type_delete()

File

modules/system/system.module, line 3849
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();
}
Login or register to post comments