You are here

function path_breadcrumbs_delete in Path Breadcrumbs 7.2

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

Delete path breadcrumb.

Parameters

$name: Path breadcrumb's name.

Return value

void

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 360
Provide core functions for path breadcrumbs modue.

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);
  cache_clear_all('path_breadcrumbs', 'cache', TRUE);
}