public function location_handler_argument_location_country::summary_name in Location 7.3
Same name and namespace in other branches
- 6.3 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country::summary_name()
- 7.5 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country::summary_name()
- 7.4 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country::summary_name()
Provides the name to use for the summary.
By default this is just the name field.
Parameters
object $data: The query results for the row.
Return value
string The summary.
Overrides views_handler_argument::summary_name
File
- handlers/
location_handler_argument_location_country.inc, line 20 - Argument handler to accept a country code or name.
Class
Code
public function summary_name($data) {
$value = $data->{$this->name_alias};
if (empty($value)) {
return t('Unknown');
}
return location_country_name($value);
}