You are here

function custom_breadcrumbs_paths_cb_breadcrumb_info in Custom Breadcrumbs 6.2

Same name and namespace in other branches
  1. 7.2 custom_breadcrumbs_paths/custom_breadcrumbs_paths.module \custom_breadcrumbs_paths_cb_breadcrumb_info()

Implements hook_cb_breadcrumb_info().

Return value

an array with elements: 'table' indicating the db_table to load the breadcrumb from, 'field' a unique field of the database table used to identify the breadcrumb, 'type' a string used for indicating the breadcrumb type on the admin list, 'name_constructor' a function which generates the breadcrumb name from the breadcrumb.

File

custom_breadcrumbs_paths/custom_breadcrumbs_paths.module, line 19

Code

function custom_breadcrumbs_paths_cb_breadcrumb_info() {
  $breadcrumb_type_info = array();
  $breadcrumb_type_info['paths'] = array(
    'table' => 'custom_breadcrumbs_paths',
    'field' => 'specific_path',
    'type' => 'path',
    'name_constructor' => '_custom_breadcrumbs_paths_breadcrumb_name',
  );
  return $breadcrumb_type_info;
}