function views_handler_argument_string::summary_argument 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::summary_argument()
- 7.3 handlers/views_handler_argument_string.inc \views_handler_argument_string::summary_argument()
Provide the argument to use to link from the summary to the next level; this will be called once per row of a summary, and used as part of $view->get_url().
Parameters
$data: The query results for the row.
Overrides views_handler_argument::summary_argument
File
- handlers/
views_handler_argument_string.inc, line 197
Class
- views_handler_argument_string
- Basic argument handler to implement string arguments that may have length limits.
Code
function summary_argument($data) {
$value = $this
->case_transform($data->{$this->base_alias}, 'path_case');
if (!empty($this->options['transform_dash'])) {
$value = strtr($value, ' ', '-');
}
return $value;
}