You are here

class i18nviews_handler_argument_term_node_tid_depth in Internationalization Views 6.2

Same name and namespace in other branches
  1. 6.3 includes/i18nviews_handler_argument_term_node_tid_depth.inc \i18nviews_handler_argument_term_node_tid_depth
  2. 7.3 includes/i18nviews_handler_argument_term_node_tid_depth.inc \i18nviews_handler_argument_term_node_tid_depth

Argument handler for taxonomy terms with depth.

This handler is actually part of the node table and has some restrictions, because it uses a subquery to find nodes with

Hierarchy

Expanded class hierarchy of i18nviews_handler_argument_term_node_tid_depth

1 string reference to 'i18nviews_handler_argument_term_node_tid_depth'
i18nviews_views_data_alter in includes/i18nviews.views.inc
Implemenation of hook_views_data_alter().

File

includes/i18nviews_handler_argument_term_node_tid_depth.inc, line 8

View source
class i18nviews_handler_argument_term_node_tid_depth extends views_handler_argument_term_node_tid_depth {
  function title() {
    $term = taxonomy_get_term($this->argument);
    if (!empty($term)) {

      // TODO check if translation is enabled for this vocab.
      return check_plain(tt('taxonomy:term:' . $term->tid . ':name', $term->name));
    }

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

}

Members