You are here

function nat_handler_argument_term_node_tid_depth::title in Node Auto Term [NAT] 7.2

Same name and namespace in other branches
  1. 6.2 includes/nat_handler_argument_term_node_tid_depth.inc \nat_handler_argument_term_node_tid_depth::title()
  2. 6 includes/nat_handler_argument_term_node_tid_depth.inc \nat_handler_argument_term_node_tid_depth::title()
  3. 7 includes/nat_handler_argument_term_node_tid_depth.inc \nat_handler_argument_term_node_tid_depth::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

includes/nat_handler_argument_term_node_tid_depth.inc, line 131
NAT (Node Auto Term) nid views argument with depth handler.

Class

nat_handler_argument_term_node_tid_depth
Argument handler for NAT terms over NAT nid with depth.

Code

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

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