mocean_sms_order_notification-8.x-1.2/mocean_sms_order_notification.module
mocean_sms_order_notification.module
<?php
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function mocean_sms_order_notification_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.mocean_sms_order_notification':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('MoceanSMS Order Notification module sends SMS on events triggered by Drupal Commerce and Commerce Shipping by using <a href=":mocean_link">Mocean</a>SMS service.', [':mocean_link' => 'https://moceanapi.com/']) . '</p>';
$output .= '<p>' . t('This module can send SMS to notify your customers regarding the status of their order by using
<a href=":der_link">Profile</a> which comes along with Drupal Commerce.
Users are required to configure the machine name for telephone field in Configuration.',
[':der_link' => 'https://www.drupal.org/project/profile']) . '</p>';
$output .= '<p>' . t('We also recommend <a href=":tv_link">Telephone Validation</a> to ensure phone numbers are in correct
format.', [':tv_link' => 'https://www.drupal.org/project/telephone_validation']) . '</p>';
$output .= '</br>';
$output .= '<dt>' . t('Order Complete SMS') . '</dt>';
$output .= '<dd>' . t('SMS is sent on event of customer completing orders, can be configured in checkout flows') . '</dd>';
$output .= '<dt>' . t('Order Ready for Shipping SMS') . '</dt>';
$output .= '<dd>' . t('SMS is sent on event of order ready to be shipped, can be configured at Configuration.') . '</dd>';
$output .= '<dt>' . t('Order Shipped SMS') . '</dt>';
$output .= '<dd>' . t('SMS is sent on event of order shipped, can be configured at Configuration.') . '</dd>';
return $output;
}
}
