function i18nviews_handler_argument_term_node_tid_depth::title in Internationalization Views 6.3
Same name and namespace in other branches
- 6.2 includes/i18nviews_handler_argument_term_node_tid_depth.inc \i18nviews_handler_argument_term_node_tid_depth::title()
- 7.3 includes/i18nviews_handler_argument_term_node_tid_depth.inc \i18nviews_handler_argument_term_node_tid_depth::title()
File
- includes/
i18nviews_handler_argument_term_node_tid_depth.inc, line 9
Class
- i18nviews_handler_argument_term_node_tid_depth
- Argument handler for taxonomy terms with depth.
Code
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');
}