function contact_config_import_delete

Implements MODULE_config_import_delete().

File

drupal/core/modules/contact/contact.module, line 203
Enables the use of personal and site-wide contact forms.

Code

function contact_config_import_delete($name, $new_config, $old_config) {
  if (strpos($name, 'contact.category.') !== 0) {
    return FALSE;
  }
  list(, , $id) = explode('.', $name);
  entity_delete_multiple('contact_category', array(
    $id,
  ));
  return TRUE;
}