function workbench_workflows_load_label in Workbench Moderation 7.2
Load a single, unsanitized workbench moderation exportable label.
Parameters
string $type: Allowed values are 'states', 'events', and 'workflows'
string $name: The machine name of the exportable.
string $label_property: The property on the exportable to return. Defaults to admin_title. Returns an UNESCAPED string.
1 call to workbench_workflows_load_label()
- workbench_moderation_messages in ./
workbench_moderation.module - Sets status messages for a node.
File
- modules/
workbench_workflows/ workbench_workflows.module, line 147 - workbench_workflows.module
Code
function workbench_workflows_load_label($type, $name, $label_property = 'admin_title') {
$exportable = workbench_workflows_load($type, $name);
if (!empty($exportable->{$label_property})) {
return $exportable->{$label_property};
}
return '';
}