function views_config_import_delete

Implements hook_config_import_delete().

File

drupal/core/modules/views/views.module, line 2233
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_config_import_delete($name, $new_config, $old_config) {

  // Only image styles require custom handling. Any other module settings can be
  // synchronized directly.
  if (strpos($name, 'views.view.') !== 0) {
    return FALSE;
  }
  list(, , $id) = explode('.', $name);
  $view = entity_load('view', $id);
  entity_delete($view);
  return TRUE;
}