You are here

function messaging_help in Messaging 6.2

Same name and namespace in other branches
  1. 5 messaging.module \messaging_help()
  2. 6.4 messaging.module \messaging_help()
  3. 6 messaging.module \messaging_help()
  4. 6.3 messaging.module \messaging_help()
  5. 7 messaging.module \messaging_help()

Implementation of hook_help().

File

./messaging.module, line 30

Code

function messaging_help($path, $arg) {
  switch ($path) {
    case 'admin/help#messaging':
      $output = '<p>' . t('The messaging module is the engine that handles outgoing messages and message queueing for different sending methods.') . '</p>';
      $output .= '<p>' . t('You need to enable one or more of the included plug-ins to be able to actually take advantage of it.') . '</p>';
      return $output;
    default:
      if ($arg[0] == 'admin') {
        if ($arg[1] == 'settings' && $arg[2] == 'filters') {
          return '<p>' . t('Filters are used also for messaging. If the input format is to be used only for messaging you don\'t need to allow any role for it.') . '</p>';
        }
        if ($arg[1] == 'messaging') {
          require_once drupal_get_path('module', 'messaging') . '/messaging.admin.inc';
          return messaging_admin_help($path, $arg);
        }
      }
  }
}