function workflow_label in Workflow 7.2
Helper function, to get the label of a given workflow.
See also
workflow_get_sid_label($sid)
workflow_get_wid_label($wid)
File
- ./
workflow.entity.inc, line 508 - Integrates workflow with entity API.
Code
function workflow_label($workflow) {
if ($workflow === FALSE) {
$output = t('No workflow');
}
elseif ($workflow) {
$output = $workflow
->label();
}
else {
// E.g., NULL.
$output = t('Unknown workflow');
}
return $output;
}