You are here

function views_handler_argument_term_node_tid_depth_summary::set_breadcrumb in Views Hacks 7

Same name and namespace in other branches
  1. 6 views_summary_taxonomy/views_handler_argument_term_node_tid_depth_summary.inc \views_handler_argument_term_node_tid_depth_summary::set_breadcrumb()

Give an argument the opportunity to modify the breadcrumb, if it wants.

Only gets called on displays where a breadcrumb is actually used.

The breadcrumb will be in the form of an array, with the keys being the path and the value being the already sanitized title of the path.

Overrides views_handler_argument::set_breadcrumb

File

views_summary_taxonomy/views_handler_argument_term_node_tid_depth_summary.inc, line 50

Class

views_handler_argument_term_node_tid_depth_summary
Argument handler for taxonomy terms with depth and supporting summary view.

Code

function set_breadcrumb(&$breadcrumb) {
  if (empty($this->options['set_breadcrumb']) || !is_numeric($this->argument)) {
    return;
  }
  return views_taxonomy_set_breadcrumb($breadcrumb, $this);
}