function custom_breadcrumbs_taxonomy_cb_breadcrumb_info in Custom Breadcrumbs 6.2
Same name and namespace in other branches
- 7.2 custom_breadcrumbs_taxonomy/custom_breadcrumbs_taxonomy.module \custom_breadcrumbs_taxonomy_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 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_taxonomy/
custom_breadcrumbs_taxonomy.module, line 48 - This module implements taxonomy_based breadcrumbs using a hybrid of methods developed for the custom_breadcrumbs and taxonomy_breadcrumbs modules. Breadcrumbs are provided for node and taxonomy term pages. If 'Use taxonomy hierarchy' is…
Code
function custom_breadcrumbs_taxonomy_cb_breadcrumb_info() {
$breadcrumb_type_info = array();
$breadcrumb_type_info['taxonomy_vocabulary'] = array(
'table' => 'custom_breadcrumbs_taxonomy_vocabulary',
'field' => 'vid',
'type' => 'taxonomy_vocabulary',
'name_constructor' => '_custom_breadcrumbs_taxonomy_vocabulary_breadcrumb_name',
);
$breadcrumb_type_info['taxonomy_term'] = array(
'table' => 'custom_breadcrumbs_taxonomy_term',
'field' => 'tid',
'type' => 'taxonomy_term',
'name_constructor' => '_custom_breadcrumbs_taxonomy_term_breadcrumb_name',
);
return $breadcrumb_type_info;
}