You are here

rave_alerts.install in RAVE Alerts 1.0.x

Same filename and directory in other branches
  1. 7 rave_alerts.install

File

rave_alerts.install
View source
<?php

/**
 * @file
 */

/**
 * Implements hook_install().
 */
function rave_alerts_install() {

  // set sane defaults
  variable_set('rave_alerts_rss_url', 'http://www.getrave.com/rss/DemoUniversityAlert/channel8');
  variable_set('rave_alerts_check_enable', 1);
  variable_set('rave_alerts_network_fail_message', 'Network Failure: Please go directly to [YOUR ALERT SITE] for more information.');
}

/**
 * Implements hook_uninstall().
 */
function rave_alerts_uninstall() {
  variable_del('rave_alerts_rss_url');
  variable_del('rave_alerts_deafult_read_more_url');
  variable_del('rave_alerts_network_fail_message');
  variable_del('rave_alerts_clear_text');
  variable_del('rave_alerts_enable');
  variable_del('rave_alerts_display');
  variable_del('rave_alerts_pubdate');
}

/**
 * Implements hook_schema().
 */
function rave_alerts_schema() {
  $schema['cache_rave_alerts'] = drupal_get_schema_unprocessed('system', 'cache');
  return $schema;
}

Functions