You are here

scs.install in Simplenews Content Selection 8

Same filename and directory in other branches
  1. 7.2 scs.install
  2. 7 scs.install

Install/Uninstall functions

File

scs.install
View source
<?php

/**
 * @file
 * Install/Uninstall functions
 */

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

  // Delete created variables
  variable_del('scs_view_mode');
  variable_del('scs_node_type');
}

/**
 * Update variable to array setting to allow multiple selections
 */
function scs_update_7000() {
  $old_var = variable_get('scs_view_mode', 'scs');
  variable_set('scs_view_mode', array(
    $old_var,
  ));
}

Functions

Namesort descending Description
scs_uninstall Implements hook_uninstall().
scs_update_7000 Update variable to array setting to allow multiple selections