mocean_sms_broadcast-1.x-dev/mocean_sms_broadcast.module

mocean_sms_broadcast.module
<?php

use Drupal\mocean_sms_broadcast\Utility;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function mocean_sms_broadcast_help($route_name, RouteMatchInterface $route_match) {

  switch ($route_name) {
    case 'help.page.mocean_sms_broadcast':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('MoceanSMS Broadcast module is used for sending text messages by using <a href=":mocean_link">Mocean</a>SMS service.', [':mocean_link' => 'https://moceanapi.com/']) . '</p>';
      $output .= '<p>' . t('This module can only send messages to users registered to your website by using
						<a href=":der_link">Dynamic Entity Reference</a> to set up a field for telephone number in account settings.
						Any name for the label is valid as long as the machine name is field_phone.',
						[':der_link' => 'https://www.drupal.org/project/dynamic_entity_reference']) . '</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('Send Message to All Users') . '</dt>';
      $output .= '<dd>' . t('Messages can be sent to all registered users who have entered their phone number on your website.') . '</dd>';
	  $output .= '<dt>' . t('Send Message to Specific Users') . '</dt>';
      $output .= '<dd>' . t('Messages can be sent to all registered users who have entered their phone number on your website.') . '</dd>';
	  $output .= '<dt>' . t('Send Message to Specific Phone Numbers') . '</dt>';
      $output .= '<dd>' . t('Messages can be sent to specific phone numbers by input.') . '</dd>';
      return $output;

  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc