You are here

hide_submit.install in Hide submit button 5

Same filename and directory in other branches
  1. 6 hide_submit.install
  2. 7.2 hide_submit.install
  3. 7 hide_submit.install

Hide the submit button after clicked to prevent/reduce duplicate postings.

Installation and update procedures are defined in this file

File

hide_submit.install
View source
<?php

/**
 * @file
 * Hide the submit button after clicked to prevent/reduce duplicate postings.
 * 
 * Installation and update procedures are defined in this file
 */

/**
* Implement hook install
*/
function hide_submit_install() {
  drupal_set_message(st('Hide submit module installed.'));
}

/**
* Implement hook uninstall
*/
function hide_submit_uninstall() {

  // Delete any variables that have been set.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'hide_submit_%'");
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
  drupal_set_message(t('Hide submit module variables deleted.<br />To completely remove this module, delete the hide_submit directory from your files directory.'));
}

Functions

Namesort descending Description
hide_submit_install Implement hook install
hide_submit_uninstall Implement hook uninstall