function views_handler_argument_string::title in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 handlers/views_handler_argument_string.inc \views_handler_argument_string::title()
- 7.3 handlers/views_handler_argument_string.inc \views_handler_argument_string::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::title
File
- handlers/
views_handler_argument_string.inc, line 226
Class
- views_handler_argument_string
- Basic argument handler to implement string arguments that may have length limits.
Code
function title() {
$title = $this
->case_transform($this->argument, 'case');
if (!empty($this->options['transform_dash'])) {
$title = strtr($title, '-', ' ');
}
return check_plain($title);
}