diff --git a/message_notify.module b/message_notify.module index 6bfe636837b80df3f0bb2f1d62f3189e734321b6..6a82ec70eb79a86280cc1bf638b74899a56c1c9f 100644 --- a/message_notify.module +++ b/message_notify.module @@ -2,10 +2,44 @@ /** * @file - * Message notify module. + * Module file for Message notify. */ use Drupal\Core\Entity\Entity\EntityViewMode; +use Drupal\Core\Routing\RouteMatchInterface; + + /** + * Implements hook_help(). + */ +function message_notify_help($route_name, RouteMatchInterface $route_match) { + $output = ''; + switch ($route_name) { + case 'help.page.message_notify': + $output .= '<h3>' . t('About Message Notify Module') . '</h3>'; + $output .= '<p>' . t('The Message Notify module provides a flexible way to send notifications to users using different delivery methods such as email and SMS.') . '</p>'; + $output .= '<h3>' . t('Usage') . '</h3>'; + $output .= '<p>' . t('To send messages via the Message Notify module, follow these steps:') . '</p>'; + $output .= '<ol>'; + $output .= '<li>' . t('Enable the Message Notify module.') . '</li>'; + $output .= '<li>' . t('Configure the module settings, including delivery methods, templates, and notification triggers.') . '</li>'; + $output .= '<li>' . t('Use the available plugins for sending messages via email, SMS, or other delivery methods.') . '</li>'; + $output .= '</ol>'; + $output .= '<h3>' . t('Customization') . '</h3>'; + $output .= '<p>' . t('Message Notify allows customization through "View modes." You can customize which message-text fields will be rendered and delivered to users. To customize message rendering, follow these steps:') . '</p>'; + $output .= '<ol>'; + $output .= '<li>' . t('Create or modify view modes for messages, specifying the fields and their display order.') . '</li>'; + $output .= '<li>' . t('Use the created view modes when sending notifications to control the content and appearance of your messages.') . '</li>'; + $output .= '</ol>'; + $output .= '<h3>' . t('Creating Nodes') . '</h3>'; + $output .= '<p>' . t('To create nodes in Drupal, follow these steps:') . '</p>'; + $output .= '<ol>'; + $output .= '<li>' . t('Navigate to the Content creation page in the Drupal admin interface.') . '</li>'; + $output .= '<li>' . t('Choose the content type for your node and fill in the required fields.') . '</li>'; + $output .= '<li>' . t('Save the node to create it.') . '</li>'; + $output .= '</ol>'; + return $output; + } +} /** * Implements hook_mail().