You are here

public function views_handler_argument_taxonomy::title in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/taxonomy/views_handler_argument_taxonomy.inc \views_handler_argument_taxonomy::title()
  2. 6.2 modules/taxonomy/views_handler_argument_taxonomy.inc \views_handler_argument_taxonomy::title()

Override the behavior of title(). Get the title of the node.

Overrides views_handler_argument_numeric::title

File

modules/taxonomy/views_handler_argument_taxonomy.inc, line 18
Definition of views_handler_argument_taxonomy.

Class

views_handler_argument_taxonomy
Argument handler for basic taxonomy tid.

Code

public function title() {

  // There might be no valid argument.
  if ($this->argument) {
    $term = taxonomy_term_load($this->argument);
    if (!empty($term)) {
      return check_plain($term->name);
    }
  }

  // @todo review text.
  return t('No name');
}