You are here

function workflow_help in Workflow 5.2

Same name and namespace in other branches
  1. 8 workflow.module \workflow_help()
  2. 5 workflow.module \workflow_help()
  3. 7.2 workflow.module \workflow_help()

Implementation of hook_help().

File

./workflow.module, line 11

Code

function workflow_help($section) {
  switch ($section) {
    case strstr($section, 'admin/build/workflow/edit'):
      return t('You are currently viewing the possible transitions to and from workflow states. The state is shown in the left column; the state to be moved to is to the right. For each transition, check the box next to the role(s) that may initiate the transition. For example, if only the editor role may move a node from Review state to the Published state, check the box next to editor. The author role is built in and refers to the user who authored the node. For a summary of which role may do which transition, look at the bottom of this page.');
    case 'admin/build/workflow/add':
      return t('To get started, provide a name for your workflow. This name will be used as a label when the workflow status is shown during node editing.');
    case strstr($section, 'admin/build/workflow/state') && !strstr($section, 'delete'):
      return t('Enter the name for a state in your workflow. For example, if you were doing a meal workflow it may include states like <em>shop</em>, <em>prepare food</em>, <em>eat</em>, and <em>clean up</em>.');
    case strstr($section, 'admin/build/workflow/actions') && count($section) == 22:
      return t('Use this page to set actions to happen when transitions occur. To <a href="@link">configure actions</a>, use the actions module.', array(
        '@link' => url('admin/actions'),
      ));
  }
}