custom_breadcrumbs_views_cb_breadcrumb_info

Versions
6
custom_breadcrumbs_views_cb_breadcrumb_info()

Implementation of 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

Code

contributions/custom_breadcrumbs/custom_breadcrumbs_views/custom_breadcrumbs_views.module, line 17

<?php
function custom_breadcrumbs_views_cb_breadcrumb_info() {
  $breadcrumb_type_info = array();
  $breadcrumb_type_info['views'] = array('table' => 'custom_breadcrumbs_views', 'field' => 'views_path', 'type' => 'views',  'name_constructor' => '_custom_breadcrumbs_views_breadcrumb_name');
  return $breadcrumb_type_info;
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.