function path_breadcrumbs_load_prepare in Path Breadcrumbs 7.3
Same name and namespace in other branches
- 7.2 path_breadcrumbs.module \path_breadcrumbs_load_prepare()
Prepare raw object from Ctools to normal path_breadcrumbs object.
Parameters
object $path_breadcrumbs_raw: Object loaded from database or ctools_export_load_object().
Return value
object $path_breadcrumbs prepared object.
4 calls to path_breadcrumbs_load_prepare()
- path_breadcrumbs_import_form_submit in path_breadcrumbs_ui/
path_breadcrumbs_ui.admin.inc - Submit callback for path breadcrumbs import form.
- path_breadcrumbs_load in ./
path_breadcrumbs.module - Load path breadcrumbs by ID.
- path_breadcrumbs_load_by_name in ./
path_breadcrumbs.module - Load path breadcrumb by name.
- path_breadcrumbs_load_by_name_multiple in ./
path_breadcrumbs.module - Load multiple objects by names.
1 string reference to 'path_breadcrumbs_load_prepare'
- path_breadcrumbs_load_all in ./
path_breadcrumbs.module - Load all path breadcrumbs from database and code.
File
- ./
path_breadcrumbs.module, line 574
Code
function path_breadcrumbs_load_prepare($path_breadcrumbs_raw) {
// Merge breadcrumb data with parent for more flattening structure.
$path_breadcrumbs = (object) array_merge((array) $path_breadcrumbs_raw, $path_breadcrumbs_raw->data);
$path_breadcrumbs->disabled = isset($path_breadcrumbs->disabled) ? $path_breadcrumbs->disabled : FALSE;
$path_breadcrumbs->is_overwritten = $path_breadcrumbs->export_type == (EXPORT_IN_DATABASE | EXPORT_IN_CODE);
unset($path_breadcrumbs->data);
return $path_breadcrumbs;
}