workflow_views_handler_field_sid.inc in Workflow 6
Same filename and directory in other branches
Provide views field handler for workflow.module.
File
workflow_views/includes/workflow_views_handler_field_sid.incView source
<?php
/**
* @file
* Provide views field handler for workflow.module.
*/
/**
* Field handler to provide simple renderer that allows linking to a node.
*/
class workflow_views_handler_field_sid extends views_handler_field {
function render($values) {
if (empty($values->{$this->field_alias})) {
return t('No state');
}
static $states;
if (!isset($states)) {
$states = workflow_get_states();
}
$output = $states[$values->{$this->field_alias}];
if (empty($output)) {
$output = t('Unknown state');
}
return check_plain($output);
}
}
Classes
Name | Description |
---|---|
workflow_views_handler_field_sid | Field handler to provide simple renderer that allows linking to a node. |