function hide_submit_update_6101 in Hide submit button 6
File
- ./
hide_submit.install, line 51 - Hide the submit button after clicked to prevent/reduce duplicate postings.
Code
function hide_submit_update_6101() {
$load_option = variable_get('hide_submit_js_load_option', HIDE_SUBMIT_DEFAULT_JS_LOAD);
switch ($load_option) {
// Option #1 load on every page was omitted
// Option #3 load on every page and exclude listed renumbered as #1
case 3:
variable_set('hide_submit_js_load_option', HIDE_SUBMIT_EXCLUDE_LISTED_PAGES);
break;
case 1:
if (variable_get('hide_submit_js_load_pages', '') != "") {
drupal_set_message(st('Hide Submit Warning: Please note that the option to load script on every page was omitted. To load on every page make sure to clear the list of excluded pages. visit the settings page to review your settings'), 'warning');
}
break;
default:
break;
}
return array();
}