function path_breadcrumbs_load_all in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs.module \path_breadcrumbs_load_all()
Load all path breadcrumbs from database and code.
Return value
array Array of path_breadcrumbs objects.
3 calls to path_breadcrumbs_load_all()
- path_breadcrumbs_export_list in ./
path_breadcrumbs.module - Ctools list callback of all avalible path_breadcrumbs objects.
- path_breadcrumbs_load_by_path in ./
path_breadcrumbs.module - Load enabled path_breadcrumbs by path.
- path_breadcrumbs_ui_breadcrumbs_list in path_breadcrumbs_ui/
path_breadcrumbs_ui.admin.inc - Page callback for module settings page.
1 string reference to 'path_breadcrumbs_load_all'
- path_breadcrumbs_schema in ./
path_breadcrumbs.install - Implements hook_schema().
File
- ./
path_breadcrumbs.module, line 459 - Provide core functions for path breadcrumbs modue.
Code
function path_breadcrumbs_load_all() {
$data =& drupal_static(__FUNCTION__);
if (empty($data)) {
ctools_include('export');
$data = ctools_export_load_object('path_breadcrumbs', 'all');
// Make objects more developer-friendly.
$data = array_map('path_breadcrumbs_load_prepare', $data);
// Order by weight.
uasort($data, '_path_breadcrumbs_sort_weight');
}
return $data;
}