You are here

function workflow_cleanup_help in Workflow 8

Same name and namespace in other branches
  1. 7.2 workflow_cleanup/workflow_cleanup.module \workflow_cleanup_help()

Implements hook_help().

File

modules/workflow_cleanup/workflow_cleanup.module, line 13
Cleans up Workflow cruft that may build up over time.

Code

function workflow_cleanup_help($route_name, RouteMatchInterface $route_match) {
  $output = [];
  switch ($route_name) {
    case 'workflow.cleanup.settings':
      $output = t('This page allows you to delete orphaned and inactive states.
        States can be deleted freely in a development environment, but be
        careful if you have used a State in a production environment. The
        transition history of your content will loose the description of a
        previously used state. If your Workflow must comply to some auditing
        standards, you should NOT use this function.');
      break;
  }
  return $output;
}