You are here

function path_breadcrumbs_delete in Path Breadcrumbs 7.3

Same name and namespace in other branches
  1. 7 path_breadcrumbs.module \path_breadcrumbs_delete()
  2. 7.2 path_breadcrumbs.module \path_breadcrumbs_delete()

Delete path breadcrumb.

Parameters

string $name: Path breadcrumb's name.

2 calls to path_breadcrumbs_delete()
path_breadcrumbs_import_form_submit in path_breadcrumbs_ui/path_breadcrumbs_ui.admin.inc
Submit callback for path breadcrumbs import form.
path_breadcrumbs_ui_delete_form_submit in path_breadcrumbs_ui/path_breadcrumbs_ui.module
Submit callback for deletion form. Removes path breadcrumbs from database.

File

./path_breadcrumbs.module, line 551

Code

function path_breadcrumbs_delete($name) {
  $path_breadcrumbs = path_breadcrumbs_load_by_name($name);

  // Inform modules about deleting path_breadcrumbs.
  module_invoke_all('path_breadcrumbs_delete', $path_breadcrumbs);

  // Call ctools functions to remove object correctly.
  ctools_export_crud_delete('path_breadcrumbs', $path_breadcrumbs);
  path_breadcrumbs_object_cache_clear($name);

  // Truncate all cached data.
  cache_clear_all('*', PATH_BREADCRUMBS_CACHE_STORAGE, TRUE);
}