You are here

function require_on_publish_help in Require on Publish 8

Implements hook_help().

File

./require_on_publish.module, line 17
Module file for the Require on Publish module.

Code

function require_on_publish_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.require_on_publish':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Require on Publish module provides a mechanism for requiring a field to be filled out <em>only when publishing an entity</em>.') . '</p>';
      $output .= '<h3>' . t('Configuration') . '</h3>';
      $output .= '<p>' . t('Tick off the "Require on Publish" checkbox when managing a field. That\'s it!') . '</p>';
      return $output;
  }
}