function workflow_cleanup_workflow_operations in Workflow 7
Implements hook_workflow_operations(). Might as well eat our own cooking.
File
- workflow_cleanup/
workflow_cleanup.module, line 37 - Cleans up Workflow cruft that may build up over time.
Code
function workflow_cleanup_workflow_operations($op, $workflow = NULL, $state = NULL) {
switch ($op) {
case 'top_actions':
$alt = t('Clean up workflow cruft');
$actions = array(
'workflow-cleanup' => array(
'title' => t('Clean up'),
'href' => 'admin/config/workflow/workflow/cleanup',
'attributes' => array(
'alt' => $alt,
'title' => $alt,
),
),
);
return $actions;
}
}