You are here

jquery_countdown.install in jQuery Countdown 7

Same filename and directory in other branches
  1. 7.2 jquery_countdown.install

jQuery Countdown install file.

File

jquery_countdown.install
View source
<?php

// $Id$

/**
 * @file
 * jQuery Countdown install file.
 */

/**
 * Implementation of hook_install().
 *
 */
function jquery_countdown_install() {
  variable_set('jquery_countdown_event_name', '');
  variable_set('jquery_countdown_target', '');
  variable_set('jquery_countdown_exp_txt', '');
  variable_set('jquery_countdown_msg_format', '%days %hours %minutes %seconds');
  drupal_set_message(t('jQuery Countdown has been installed successfully. <a href="!link">Click here</a> for configurations!', array(
    '!link' => url('admin/config/user-interface/jquery-countdown'),
  )));
}

// end function jquery_countdown_install;

/**
 * Implementation of hook_uninstall().
 *
 */
function jquery_countdown_uninstall() {
  variable_del('jquery_countdown_event_name');
  variable_del('jquery_countdown_target');
  variable_del('jquery_countdown_exp_txt');
  variable_del('jquery_countdown_msg_format');
}

// end function jquery_countdown_uninstall;

Functions

Namesort descending Description
jquery_countdown_install Implementation of hook_install().
jquery_countdown_uninstall Implementation of hook_uninstall().