function system_date_format_type_delete

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()
system_delete_date_format_type_form_submit in modules/system/system.admin.inc
Delete a configured date type.

File

modules/system/system.module, line 3927

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.