comparison core/modules/workflows/workflows.module @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 /**
4 * @file
5 * Provides hook implementations for the Workflows module.
6 */
7
8 use Drupal\Core\Routing\RouteMatchInterface;
9
10 /**
11 * Implements hook_help().
12 */
13 function workflows_help($route_name, RouteMatchInterface $route_match) {
14 switch ($route_name) {
15 case 'help.page.workflows':
16 $output = '';
17 $output .= '<h3>' . t('About') . '</h3>';
18 $output .= '<p>' . t('The Workflows module provides a UI and an API for creating workflows content. This lets site admins define workflows and their states, and then define transitions between those states. For more information, see the <a href=":workflow">online documentation for the Workflows module</a>.', [':workflow' => 'https://www.drupal.org/documentation/modules/workflows']) . '</p>';
19 $output .= '<h4>' . t('Workflow') . '</h4>';
20 $output .= '<p>' . t('A collection of states and transitions between those states.') . '</p>';
21 $output .= '<h4>' . t('State') . '</h4>';
22 $output .= '<p>' . t('A particular condition that something is in at a specific time. The usage of the state is determined by a module that harnesses the Workflows module. For example, Content Moderation allows a state to be used for moderation of content by assigning a given state to a content item.') . '</p>';
23 $output .= '<h4>' . t('Transition') . '</h4>';
24 $output .= '<p>' . t('The process of changing from one state to another. A transition can occur from multiple states, but only to one state.') . '</p>';
25 return $output;
26 }
27 }