You are here

csm.install in Custom Submit Messages 7.x

Same filename and directory in other branches
  1. 6 csm.install
  2. 7 csm.install

Install, update and uninstall functions for the Custom Submit Messages module.

File

csm.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Custom Submit Messages module.
 */

/**
 * Implements hook_install().
 */
function csm_install() {
  global $base_url;
  drupal_set_message(st('Custom Submit Messages module has been installed succesfully. In order for the module to work, ' . l(st('click here'), 'admin/settings/messages_alter') . ' and then update the Status Message Alter module to the latest version.'));
}

/**
 * Implements hook_uninstall().
 */
function csm_uninstall() {

  // Remove all of the variables that the module has added to the variable table
  drupal_load('module', 'csm');
  $variables = array_values(csm_variables());
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}

Functions

Namesort descending Description
csm_install Implements hook_install().
csm_uninstall Implements hook_uninstall().