You are here

function _hide_submit_debug_on in Hide submit button 7

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

Debug mode check

2 calls to _hide_submit_debug_on()
hide_submit_form_alter in ./hide_submit.module
Implements hook_form_alter().
_hide_submit_get_javascript_settings in ./hide_submit.module
Get javascript code for injection

File

./hide_submit.module, line 399
Hide the submit button after clicked to prevent/reduce duplicate postings.

Code

function _hide_submit_debug_on() {
  return variable_get('hide_submit_debug', FALSE) && user_access('administer site configuration');
}