Skip to content
Snippets Groups Projects
Commit f5921f20 authored by Shubham Rathore's avatar Shubham Rathore
Browse files

Merge branch '8.x-1.x' into '8.x-1.x'

Issue #3339817: hook_help function missing in .module file

See merge request !9
parents b2527d72 a3877ede
No related branches found
No related tags found
No related merge requests found
Pipeline #285435 passed with warnings
......@@ -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().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment