function views_handler_field_variable::render in Views Variable Field 7
Render the field.
Parameters
stdClass $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ views_handler_field_variable.inc, line 86 - Definition of views_handler_field_variable.
Class
- views_handler_field_variable
- A handler to provide a field that display system variables.
Code
function render($values) {
// Return the variable's value and continue with the rendering process.
$variable = call_user_func($this->function, $this
->tokenize_value($this->options['variable_name']));
return is_array($variable) || is_object($variable) ? serialize($variable) : $variable;
}