function path_breadcrumbs_load_by_name in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs.module \path_breadcrumbs_load_by_name()
Load path breadcrumb by name.
Parameters
$name: Path breadcrumb's name.
Return value
object Object with path breadcrumb.
3 calls to path_breadcrumbs_load_by_name()
- path_breadcrumbs_delete in ./
path_breadcrumbs.module - Delete path breadcrumb.
- path_breadcrumbs_import_form_submit in path_breadcrumbs_ui/
path_breadcrumbs_ui.admin.inc - Submit callback for path breadcrumbs import form.
- path_breadcrumbs_ui_cache_load in path_breadcrumbs_ui/
path_breadcrumbs_ui.module - Load path_breadcrumbs object for UI editing.
2 string references to 'path_breadcrumbs_load_by_name'
- path_breadcrumbs_schema in ./
path_breadcrumbs.install - Implements hook_schema().
- _path_breadcrumbs_ui_form_step_basic_settings in path_breadcrumbs_ui/
path_breadcrumbs_ui.module - FIRST STEP. Provide form with basic settings.
File
- ./
path_breadcrumbs.module, line 422 - Provide core functions for path breadcrumbs modue.
Code
function path_breadcrumbs_load_by_name($name) {
ctools_include('export');
$result = ctools_export_load_object('path_breadcrumbs', 'names', array(
$name,
));
if (!empty($result[$name])) {
$path_breadcrumbs = $result[$name];
// Merge breadcrumb data with parent for more flattening structure.
$path_breadcrumbs = path_breadcrumbs_load_prepare($path_breadcrumbs);
}
return isset($path_breadcrumbs) ? $path_breadcrumbs : FALSE;
}