You are here

function hide_submit_update_6100 in Hide submit button 6

Implement hook update_N

File

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

Code

function hide_submit_update_6100() {
  if (!variable_get('hide_submit_toggle_image', TRUE)) {
    variable_set('hide_submit_toggle_custom_image', TRUE);
    variable_set('hide_submit_image', variable_get('hide_submit_image_link', HIDE_SUBMIT_DEFAULT_IMAGE));
  }
  return array();
}