Commit 36459f28 authored by Luz Adriana  Gallego Alzate's avatar Luz Adriana Gallego Alzate Committed by Diao Diallo
Browse files

Issue #3301196 by luzgallego: Hook help

parent c3b9c38b
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -2,6 +2,27 @@

use Drupal\group\Entity\Group;
use Drupal\content_to_group\Util\ContentToGroupUtility;
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function content_to_group_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the content_to_group module.
    case 'help.page.content_to_group':
      $output = '';
      $output .= '<h2>' . t('About') . '</h2>';
      $output .= '<p>' . t('The Content to Group module adds content to group using a referenced group field, this is happen during the save or update of the content.') . '</p>';
      $output .= '<p>';
      $output .= t('Visit the <a href=":project_link">Project page</a> on Drupal.org for more information.', [
        ':project_link' => 'https://www.drupal.org/project/content_to_group',
      ]);
      $output .= '</p>';

      return $output;
  }
}

/**
 * Implement hook_node_insert