You are here

subscriptions_og.install in Subscriptions 7

Organic Groups Subscriptions module installation.

File

contrib/subscriptions_og/subscriptions_og.install
View source
<?php

/**
 * @file
 * Organic Groups Subscriptions module installation.
 */

/**
 * Implements hook_disable().
 */
function subscriptions_og_disable() {

  // Removes our queue items.
  db_delete('subscriptions_queue')
    ->condition('module', 'node')
    ->condition('field', 'group_audience')
    ->execute();
}

/**
 * Implements hook_uninstall().
 */
function subscriptions_og_uninstall() {
  variable_del('subscriptions_og_autosubscribe');
}

Functions