1.20.x views_handler_argument_vocabulary.inc | views_handler_argument_vocabulary::title() |
Override the behavior of title(). Get the name of the vocabulary.
Overrides views_handler_argument_numeric::title
File
- modules/
taxonomy/ views/ views_handler_argument_vocabulary.inc, line 11
Class
- views_handler_argument_vocabulary
- Argument handler to accept a vocabulary name.
Code
function title() {
$vocabulary = taxonomy_vocabulary_load($this->argument);
if (empty($vocabulary)) {
return t('No vocabulary');
}
return check_plain($vocabulary->name);
}