Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
17
modules/storm/storm_handler_field_attributes_domain.inc
Normal file
17
modules/storm/storm_handler_field_attributes_domain.inc
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Views handler to show attribute values rather than keys in views.
|
||||
*/
|
||||
class storm_handler_field_attributes_domain extends views_handler_field {
|
||||
|
||||
function render($values) {
|
||||
$key = $values->{$this->field_alias};
|
||||
$value = storm_attribute_value($this->definition['domain'], $key);
|
||||
if (!empty($this->definition['icon'])) {
|
||||
return storm_icon($this->definition['icon'] .'_'. $key, $value);
|
||||
}
|
||||
return check_plain($value);
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue