function _custom_breadcrumbs_delete_breadcrumb in Custom Breadcrumbs 6.2
Same name and namespace in other branches
- 5 custom_breadcrumbs.module \_custom_breadcrumbs_delete_breadcrumb()
- 6 custom_breadcrumbs.module \_custom_breadcrumbs_delete_breadcrumb()
- 7.2 custom_breadcrumbs.module \_custom_breadcrumbs_delete_breadcrumb()
- 7 custom_breadcrumbs.module \_custom_breadcrumbs_delete_breadcrumb()
Deletes the custom breadcrumb.
Parameters
$module: The name of the custom breadcrumbs submodule that created the breadcrumb.
$key: An array key indicating the type of custom breadrumb that is to be deleted.
$bid: The id for the breadcrumb that is to be deleted.
1 call to _custom_breadcrumbs_delete_breadcrumb()
File
- ./
custom_breadcrumbs.module, line 528 - Provide custom breadcrumbs for node-type pages and base functionality for submodules to add custom breadcrumbs for other types of pages.
Code
function _custom_breadcrumbs_delete_breadcrumb($module, $key, $bid) {
$info = module_invoke($module, 'cb_breadcrumb_info');
if (isset($info[$key]['table'])) {
db_query('DELETE FROM {' . $info[$key]['table'] . '} WHERE bid = %d', $bid);
}
}