function views_handler_argument_string::title
3.x views_handler_argument_string.inc | views_handler_argument_string::title() |
2.x 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);
}