function hide_submit_init in Hide submit button 7
Same name and namespace in other branches
- 6 hide_submit.module \hide_submit_init()
Implements hook_init().
File
- ./
hide_submit.module, line 102 - Hide the submit button after clicked to prevent/reduce duplicate postings.
Code
function hide_submit_init() {
if (!hide_submit_js_loaded() && _hide_submit_load_js_check_condition()) {
drupal_add_js(_hide_submit_get_javascript_settings(), array(
'type' => 'setting',
'scope' => JS_DEFAULT,
));
drupal_add_js(drupal_get_path('module', 'hide_submit') . '/hide_submit.js');
hide_submit_js_loaded(TRUE);
}
}