You are here

function path_breadcrumbs_load_by_name_multiple in Path Breadcrumbs 7.3

Same name and namespace in other branches
  1. 7.2 path_breadcrumbs.module \path_breadcrumbs_load_by_name_multiple()

Load multiple objects by names.

Parameters

array $names:

Return value

array Array of path breadcrumbs objects.

1 string reference to 'path_breadcrumbs_load_by_name_multiple'
path_breadcrumbs_schema in ./path_breadcrumbs.install
Implements hook_schema().

File

./path_breadcrumbs.module, line 640

Code

function path_breadcrumbs_load_by_name_multiple($names) {
  ctools_include('export');
  $result = ctools_export_load_object('path_breadcrumbs', 'names', $names);

  // Merge breadcrumb data with parent for more flattening structure.
  foreach ($result as $name => $path_breadcrumbs) {
    $result[$name] = path_breadcrumbs_load_prepare($path_breadcrumbs);
  }
  return $result;
}