function path_breadcrumbs_ui_cache_load in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs_ui/path_breadcrumbs_ui.module \path_breadcrumbs_ui_cache_load()
Load path_breadcrumbs object for UI editing.
Parameters
$machine_name:
Return value
bool|object
File
- path_breadcrumbs_ui/
path_breadcrumbs_ui.module, line 1289 - Provide user interface for CRUD operations with path breadcrumbs.
Code
function path_breadcrumbs_ui_cache_load($machine_name) {
$path_breadcrumbs = path_breadcrumbs_object_cache_get($machine_name);
if (empty($path_breadcrumbs)) {
// If there is no cache load original object.
$path_breadcrumbs = path_breadcrumbs_load_by_name($machine_name);
}
if (empty($path_breadcrumbs)) {
return FALSE;
}
return $path_breadcrumbs;
}