function workflow_notify_workflow_operations in Workflow 7
Same name and namespace in other branches
- 7.2 workflow_notify/workflow_notify.module \workflow_notify_workflow_operations()
Implements hook_workflow_operations(). Add an action link to this module.
File
- workflow_notify/
workflow_notify.module, line 73 - Notify roles for Workfllow state transitions.
Code
function workflow_notify_workflow_operations($op, $workflow = NULL) {
switch ($op) {
case 'workflow':
$actions = array(
'workflow_notify_settings' => array(
'title' => t('Notifications'),
'href' => "admin/config/workflow/workflow/notify/{$workflow->wid}",
'attributes' => array(
'alt' => t('Notify users about state changes.'),
),
),
);
$actions['workflow_notify_settings']['attributes']['title'] = $actions['workflow_notify_settings']['attributes']['alt'];
return $actions;
}
}