You are here

function views_handler_argument_term_node_tid_depth_summary::title 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::title()

Get the title this argument will assign the view, given the argument.

This usually needs to be overridden to provide a proper title.

Overrides views_handler_argument::title

File

views_summary_taxonomy/views_handler_argument_term_node_tid_depth_summary.inc, line 109

Class

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

Code

function title() {
  $term = taxonomy_get_term($this->argument);
  if (!empty($term)) {
    return check_plain($term->name);
  }

  // TODO review text
  return t('No name');
}