You are here

function custom_breadcrumbs_features_generic_load in Custom Breadcrumbs Features 7.2

Generic function to load a breadcrumb.

Parameters

$machine_name: Machine name of the crumb.

$table: Table storing crumbs.

Return value

Crumb object.

8 calls to custom_breadcrumbs_features_generic_load()
custom_breadcrumbsapi_features_load in ./custom_breadcrumbs_features.module
Load a crumb of type custom_breadcrumbsapi.
custom_breadcrumbs_features_generate_missing_machine_names in ./custom_breadcrumbs_features.install
Generates machine names for crumbs that do not have one.
custom_breadcrumbs_panels_features_load in ./custom_breadcrumbs_features.module
Load a crumb of type custom_breadcrumbs_panels.
custom_breadcrumbs_paths_features_load in ./custom_breadcrumbs_features.module
Load a crumb of type custom_breadcrumbs_paths.
custom_breadcrumbs_taxonomy_term_features_load in ./custom_breadcrumbs_features.module
Load a crumb of type custom_breadcrumbs_taxonomy_term.

... See full list

File

./custom_breadcrumbs_features.module, line 133
Module file for custom_breadcrumbs_features.

Code

function custom_breadcrumbs_features_generic_load($machine_name, $table) {
  return db_select($table, 'cb')
    ->fields('cb')
    ->condition('machine_name', $machine_name)
    ->execute()
    ->fetchObject();
}