diff --git a/term_glossary.module b/term_glossary.module index d4506ed2304526af4f9ea63c3c5af3395a0057df..7dcaf81ca7c5882c714499f5cc570df61e53d220 100644 --- a/term_glossary.module +++ b/term_glossary.module @@ -10,6 +10,25 @@ use Drupal\Core\Field\FieldDefinitionInterface; use Drupal\Core\Field\FormatterInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\taxonomy\Entity\Vocabulary; +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function term_glossary_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the term_glossary module. + case 'help.page.term_glossary': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This flexible module uses a vocabulary (taxonomy) as a glossary. + It auto scans the fields (you configure it to) for uses of taxonomy terms + defined in your vocabulary.') . '</p>'; + return $output; + + default: + } +} /** * Implements hook_theme().