function SarniaViewsHandlerArgument::ui_name in Sarnia 7
Provide a custom UI name for the field based on the Solr property.
Overrides views_handler::ui_name
1 method overrides SarniaViewsHandlerArgument::ui_name()
- SarniaViewsHandlerArgumentId::ui_name in handlers/
handler_argument_id.inc - Return a string representing this handler's name in the UI.
File
- handlers/
handler_argument.inc, line 39
Class
- SarniaViewsHandlerArgument
- Really basic argument handler for filtering Solr documents in Views.
Code
function ui_name($short = FALSE) {
if (!empty($this->options['ui_name'])) {
$title = check_plain($this->options['ui_name']);
return $title;
}
$title = $short && isset($this->definition['title short']) ? $this->definition['title short'] : $this->definition['title'];
$title .= ': ' . $this->options['solr_property'];
if (!$short) {
$title = $this->definition['group'] . ': ' . $title;
}
return $title;
}