You are here

README.txt in Hide submit button 7.2

Same filename and directory in other branches
  1. 5 README.txt
  2. 6 README.txt
  3. 7 README.txt
OVERVIEW
========
Hide submit module provides a way to hide the submit button in forms after
it has been clicked. This helps to prevent duplicate postings from people who
accidentally double click (or triple click) on a submit button.

The 7.x-2.x version of this module aims to be extremely lightweight yet
extensible to handle all additional features. If you have an idea for additional
features it probably should be contributed as a sub-module and, if necessary,
a patch to the main module to make it alterable (e.g. via a hook_alter or
theme_ function).

CREDITS
=======
The current version is based on block_submit module.

The original hide_submit jQuery snippet was taken from Ted Serbinski's blog
-http://tedserbinski.com/tags/jquery/how-prevent-duplicate-posts

See also this discussion:
http://drupal.org/node/107358

INSTALLING AND CONFIGURING
==========================
Browse to admin/modules and enable the module.

You can configure it at admin/config/content/hide-submit

There are no module dependencies and no database tables created.

Uninstalling the module will remove the variables created by the module.

ADVANCED CHANGES
================
You can alter the style of affected buttons by overriding css rules. The two
css style rules to consider are:

div.hide-submit-disable - for disabled buttons.
div.hide-submit-processing - for hidden buttons.

There are two hidden variables for the values of the css classes. You can modify
these by setting a variable in the $conf array in your settings.php or using the
drush vset command. The variables are: hide_submit_css and hide_submit_hide_css.

The module calls a hook (hook_hide_submit_alter) to let other modules modify the
behavior of the module. This could be used, for example, to create a random
image effect by tweaking the css styles on each page load.

The hidden variable hide_submit_status allows a site to enable or disable the
module. This is most useful as part of the hook_hide_submit_alter to disable
the module on certain pages.

See hide_submit.api.php for an example implementation of hook_hide_submit_alter.

File

README.txt
View source
  1. OVERVIEW
  2. ========
  3. Hide submit module provides a way to hide the submit button in forms after
  4. it has been clicked. This helps to prevent duplicate postings from people who
  5. accidentally double click (or triple click) on a submit button.
  6. The 7.x-2.x version of this module aims to be extremely lightweight yet
  7. extensible to handle all additional features. If you have an idea for additional
  8. features it probably should be contributed as a sub-module and, if necessary,
  9. a patch to the main module to make it alterable (e.g. via a hook_alter or
  10. theme_ function).
  11. CREDITS
  12. =======
  13. The current version is based on block_submit module.
  14. The original hide_submit jQuery snippet was taken from Ted Serbinski's blog
  15. -http://tedserbinski.com/tags/jquery/how-prevent-duplicate-posts
  16. See also this discussion:
  17. http://drupal.org/node/107358
  18. INSTALLING AND CONFIGURING
  19. ==========================
  20. Browse to admin/modules and enable the module.
  21. You can configure it at admin/config/content/hide-submit
  22. There are no module dependencies and no database tables created.
  23. Uninstalling the module will remove the variables created by the module.
  24. ADVANCED CHANGES
  25. ================
  26. You can alter the style of affected buttons by overriding css rules. The two
  27. css style rules to consider are:
  28. div.hide-submit-disable - for disabled buttons.
  29. div.hide-submit-processing - for hidden buttons.
  30. There are two hidden variables for the values of the css classes. You can modify
  31. these by setting a variable in the $conf array in your settings.php or using the
  32. drush vset command. The variables are: hide_submit_css and hide_submit_hide_css.
  33. The module calls a hook (hook_hide_submit_alter) to let other modules modify the
  34. behavior of the module. This could be used, for example, to create a random
  35. image effect by tweaking the css styles on each page load.
  36. The hidden variable hide_submit_status allows a site to enable or disable the
  37. module. This is most useful as part of the hook_hide_submit_alter to disable
  38. the module on certain pages.
  39. See hide_submit.api.php for an example implementation of hook_hide_submit_alter.