workflow_views_handler_argument_state.inc in Workflow 7
Same filename and directory in other branches
Provide views argument handler for workflow.module.
File
workflow_views/includes/workflow_views_handler_argument_state.incView source
<?php
/**
* @file
* Provide views argument handler for workflow.module.
*/
/**
* Argument handler to accept a node type.
*/
class views_handler_argument_workflow_state extends views_handler_argument {
function construct() {
parent::construct('type');
}
/**
* Override the behavior of summary_name(). Get the user-friendly version
* of the workflow state.
*/
function summary_name($data) {
return _workflow_views_get_workflow_state_name($data->{$this->name_alias});
}
/**
* Override the behavior of title(). Get the user-friendly version of the
* workflow state.
*/
function title() {
return _workflow_views_get_workflow_state_name($this->argument);
}
}
Classes
Name | Description |
---|---|
views_handler_argument_workflow_state | Argument handler to accept a node type. |