You are here

function view_unpublished_help in view_unpublished 8

Implements hook_help().

File

./view_unpublished.module, line 111
Main functions and hook implementations of the View Unpublished module.

Code

function view_unpublished_help($route_name, RouteMatchInterface $arg) {
  switch ($route_name) {
    case 'help.page.view_unpublished':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This module allows you to grant access for specific user roles to view unpublished nodes of a specific type. Access control is quite granular in this regard.') . '</p>';

      // Add a link to the Drupal.org project.
      $output .= '<p>';
      $output .= t('Visit the <a href=":project_link">View Unpublished project pages</a> on Drupal.org for more information.', [
        ':project_link' => 'https://www.drupal.org/project/view_unpublished',
      ]);
      $output .= '</p>';
      return $output;
  }
}