function views_handler_field_machine_name::render

Overrides views_handler_field::render

File

handlers/views_handler_field_machine_name.inc, line 82

Class

views_handler_field_machine_name
Field handler whichs allows to show machine name content as human name.

Code

public function render($values) {
    $value = $values->{$this->field_alias};
    if (!empty($this->options['machine_name']) || !isset($this->value_options[$value])) {
        $result = check_plain($value);
    }
    else {
        $result = $this->value_options[$value];
    }
    return $result;
}