You are here

function hide_submit_help in Hide submit button 5

Same name and namespace in other branches
  1. 6 hide_submit.module \hide_submit_help()
  2. 7 hide_submit.module \hide_submit_help()

Implementation of hook_help().

File

./hide_submit.module, line 41

Code

function hide_submit_help($section) {
  $output = '';
  switch ($section) {
    case 'admin/help#hide_submit':
    case 'admin/settings/hide-submit':
      $output = '<p>' . t('The hide_submit module provides a way to hide the submit button in a form after it has been clicked. This will indicate to the user that his or her request is being processed and helps to prevent duplicate postings from impatient "double clickers".') . '</p>' . '<p>' . t('For more information please visit the !project page or the !documentation page', array(
        '!documentation' => l('documentation', 'http://drupal.org/node/338935'),
        '!project' => l('hide submit project', 'http://drupal.org/project/hide_submit'),
      )) . '</p>';
      if (module_exists('advanced_help')) {
        $output .= '<p>' . theme('advanced_help_topic', 'hide_submit', 'using-hide-submit') . '&nbsp;' . t('Click the icon to read the extended help.');
      }
      break;
  }
  return $output;
}