You are here

i18nviews_handler_argument_term_node_tid_depth.inc in Internationalization Views 7.3

File

includes/i18nviews_handler_argument_term_node_tid_depth.inc
View source
<?php

/**
 * 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
 */
class i18nviews_handler_argument_term_node_tid_depth extends views_handler_argument_term_node_tid_depth {
  function title() {
    $term = taxonomy_term_load($this->argument);
    if (!empty($term)) {

      // TODO check if translation is enabled for this vocab.
      return check_plain(i18n_taxonomy_term_name($term));
    }

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

}

Classes

Namesort descending Description
i18nviews_handler_argument_term_node_tid_depth Argument handler for taxonomy terms with depth.