function path_breadcrumbs_load in Path Breadcrumbs 7
Same name and namespace in other branches
- 7.3 path_breadcrumbs.module \path_breadcrumbs_load()
- 7.2 path_breadcrumbs.module \path_breadcrumbs_load()
Load path breadcrumbs.
File
- ./
path_breadcrumbs.module, line 320
Code
function path_breadcrumbs_load($path_id) {
static $paths;
if (!isset($paths[$path_id])) {
$path_breadcrumb = db_select('path_breadcrumbs', 'p')
->fields('p')
->condition('p.path_id', $path_id)
->execute()
->fetchObject();
if ($path_breadcrumb) {
$path_breadcrumb->titles = unserialize($path_breadcrumb->titles);
$path_breadcrumb->paths = unserialize($path_breadcrumb->paths);
}
$paths[$path_id] = $path_breadcrumb;
}
return $paths[$path_id];
}