Skip to content
Snippets Groups Projects

Issue #3336821: Implement hook_help()

+ 23
0
@@ -8,12 +8,35 @@
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\message_integration\Event\GetMessageIntegrationInfo;
use Drupal\message_integration\MessageIntegrationPostRender;
use Drupal\node\Entity\Node;
use Drupal\message\Entity\Message;
use Drupal\message_subscribe\Subscribers\DeliveryCandidate;
/**
* Implements hook_help().
*/
function message_integration_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the message_integration module.
case 'help.page.message_integration':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Message Integration module provides a way for site administrators to send email notifications to users about content activity on their website. This module is built around using the Message Stack, as described in the article "Emailing Users About Content Activity in Drupal 8." The idea is to create a generic module with events that other custom modules can tie into to create an email list.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Customizable events') . '</dt>';
$output .= '<dd>' . t('This module provides customizable events that other modules can tie into to create an email list. Some examples of events include new content added, content updated, and content deleted.') . '</dd>';
$output .= '<dt>' . t('Email notifications') . '</dt>';
$output .= '<dd>' . t('With the Message Integration module, you can send email notifications to users about content activity on your site. This is useful for keeping users up-to-date about the latest content and activity on your website.') . '</dd>';
$output .= '<dt>' . t('Integration with other modules') . '</dt>';
$output .= '<dd>' . t('This module can be integrated with other Drupal modules, such as Rules, to create more complex workflows and email notifications.') . '</dd>';
$output .= '</dl>';
return $output;
}
}
/**
* Implementation of hook_cron().
*
Loading