You are here

cumulus.install in Cumulus 7

Same filename and directory in other branches
  1. 5 cumulus.install
  2. 6 cumulus.install

The install file for cumulus.module

File

cumulus.install
View source
<?php

/**
 * @file
 * The install file for cumulus.module
 */

/**
 * Implements hook_uninstall().
 */
function cumulus_uninstall() {
  db_delete('variable')
    ->condition('name', 'cumulus_%', 'LIKE')
    ->execute();
  variable_del('cumulus_ids');
}

/**
 * Migrate Cumulus settings, add the old cumulus block again.
 */
function cumulus_update_7000(&$sandbox) {
  variable_set('cumulus_ids', array(
    1,
  ));
  cumulus_block_save(1, cumulus_default_config());
  db_update('block')
    ->fields(array(
    'delta' => 1,
  ))
    ->condition('module', 'cumulus')
    ->execute();
}

Functions

Namesort descending Description
cumulus_uninstall Implements hook_uninstall().
cumulus_update_7000 Migrate Cumulus settings, add the old cumulus block again.