You are here

function mailhandler_help in Mailhandler 6.2

Same name and namespace in other branches
  1. 5 mailhandler.module \mailhandler_help()
  2. 6 mailhandler.module \mailhandler_help()
  3. 7.2 mailhandler.module \mailhandler_help()
  4. 7 mailhandler.module \mailhandler_help()

Implementation of hook_help().

File

./mailhandler.module, line 32
Retrieves email for posting as nodes and comments.

Code

function mailhandler_help($path, $arg) {
  switch ($path) {
    case 'admin/help#mailhandler':

      // Return a line-break version of README.txt and INSTALL.txt.
      $help = "README.txt\n";
      $help .= "==========\n";
      $help .= file_get_contents(dirname(__FILE__) . "/README.txt");
      $help .= "\nINSTALL.txt\n";
      $help .= "===========\n";
      $help .= file_get_contents(dirname(__FILE__) . "/INSTALL.txt");
      return filter_filter('process', 1, NULL, $help);
    case MAILHANDLER_MENU_PREFIX . '/mailhandler/add':
      return t('Please see the <a href="@handbook-page">handbook page on configuring mailboxes</a> for additional help.', array(
        '@handbook-page' => url('http://drupal.org/node/207366'),
      ));
    case MAILHANDLER_MENU_PREFIX . '/feeds/edit/%':
      if ($arg[6] == 'MailhandlerParser') {
        return t('Please see the <a href="@handbook-page">handbook page on configuring commands</a> for additional help.', array(
          '@handbook-page' => url('http://drupal.org/node/1158574'),
        ));
      }
      break;
  }
}