function views_handler_argument_taxonomy::title

3.x views_handler_argument_taxonomy.inc views_handler_argument_taxonomy::title()
2.x 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::title

File

modules/taxonomy/views_handler_argument_taxonomy.inc, line 11

Class

views_handler_argument_taxonomy
Argument handler for basic taxonomy tid.

Code

function title() {
  $term = taxonomy_get_term($this->argument);
  if (!empty($term)) {
    return check_plain($term->name);
  }
  // TODO review text
  return t('No name');
}