function hide_submit_init in Hide submit button 6
Same name and namespace in other branches
- 7 hide_submit.module \hide_submit_init()
Implementation of hook_init
File
- ./
hide_submit.module, line 100 - 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(), 'setting');
drupal_add_js(drupal_get_path('module', 'hide_submit') . '/hide_submit.js');
hide_submit_js_loaded(TRUE);
}
}