function hide_submit_help in Hide submit button 7
Same name and namespace in other branches
- 5 hide_submit.module \hide_submit_help()
- 6 hide_submit.module \hide_submit_help()
Implements hook_help().
File
- ./
hide_submit.module, line 43 - Hide the submit button after clicked to prevent/reduce duplicate postings.
Code
function hide_submit_help($path, $arg) {
$output = '';
switch ($path) {
case 'admin/help#hide_submit':
case 'admin/config/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')) {
// TODO Please change this theme call to use an associative array for the $variables parameter.
$output .= '<p>' . theme('advanced_help_topic', 'hide_submit', 'using-hide-submit') . ' ' . t('Click the icon to read the extended help.');
}
break;
}
return $output;
}