function i18nviews_handler_argument_term_node_tid_depth::title in Internationalization Views 7.3
Same name and namespace in other branches
- 6.3 includes/i18nviews_handler_argument_term_node_tid_depth.inc \i18nviews_handler_argument_term_node_tid_depth::title()
- 6.2 includes/i18nviews_handler_argument_term_node_tid_depth.inc \i18nviews_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_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_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');
}