function custom_breadcrumbs_cb_breadcrumb_info in Custom Breadcrumbs 7.2
Same name and namespace in other branches
- 6.2 custom_breadcrumbs.module \custom_breadcrumbs_cb_breadcrumb_info()
Implements hook_cb_breadcrumb_info().
@codingStandardsIgnoreStart
@codingStandardsIgnoreEnd
Return value
array An array of arrays describing the breadcrumbs provided by the module. Provide one array for each type of breadcrumb. Each array should have 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.module, line 33 - Main file for the Custom breadcrumbs.
Code
function custom_breadcrumbs_cb_breadcrumb_info() {
$breadcrumb_type_info = array();
$breadcrumb_type_info['node'] = array(
'table' => 'custom_breadcrumb',
'field' => 'node_type',
'type' => 'node',
'name_constructor' => '_custom_breadcrumbs_breadcrumb_name',
);
return $breadcrumb_type_info;
}