You are here

function path_breadcrumbs_load_by_name in Path Breadcrumbs 7.3

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

Load path breadcrumb by name.

Parameters

string $name: Path breadcrumb's name.

Return value

object Object with path breadcrumb.

5 calls to path_breadcrumbs_load_by_name()
path_breadcrumbs_delete in ./path_breadcrumbs.module
Delete path breadcrumb.
path_breadcrumbs_i18n_path_breadcrumbs_save in path_breadcrumbs_i18n/path_breadcrumbs_i18n.module
Implements hook_path_breadcrumbs_save().
path_breadcrumbs_import_form_submit in path_breadcrumbs_ui/path_breadcrumbs_ui.admin.inc
Submit callback for path breadcrumbs import form.
path_breadcrumbs_ui_add_form_validate in path_breadcrumbs_ui/path_breadcrumbs_ui.module
Validate callback for path_breadcrumbs_ui_add_form.
path_breadcrumbs_ui_cache_load in path_breadcrumbs_ui/path_breadcrumbs_ui.module
Load path_breadcrumbs object for UI editing.
3 string references to 'path_breadcrumbs_load_by_name'
path_breadcrumbs_i18n_i18n_object_info in path_breadcrumbs_i18n/path_breadcrumbs_i18n.module
Implements hook_i18n_object_info().
path_breadcrumbs_schema in ./path_breadcrumbs.install
Implements hook_schema().
_path_breadcrumbs_ui_form_step_basic_settings in path_breadcrumbs_ui/path_breadcrumbs_ui.module
FIRST STEP. Provide form with basic settings.

File

./path_breadcrumbs.module, line 620

Code

function path_breadcrumbs_load_by_name($name) {
  ctools_include('export');
  $result = ctools_export_load_object('path_breadcrumbs', 'names', array(
    $name,
  ));
  if (!empty($result[$name])) {

    // Merge breadcrumb data with parent for more flattening structure.
    $path_breadcrumbs = path_breadcrumbs_load_prepare($result[$name]);
  }
  return isset($path_breadcrumbs) ? $path_breadcrumbs : FALSE;
}