You are here

floating_block.install in Floating block 6

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

Install, update, and uninstall functions for the floating_block module.

File

floating_block.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the floating_block module.
 */

/**
 * Implements hook_uninstall().
 *
 * Deletes any variables that might have been set by the module.
 */
function floating_block_uninstall() {
  variable_del('floating_block_to_apply');
  variable_del('floating_blocks');
}

/**
 * Change variable name from floating_block_to_apply to floating_blocks and migrate settings to new format.
 */
function floating_block_update_6000() {
  module_load_include('inc', 'floating_block', 'floating_block.admin');
  variable_set('floating_blocks', _floating_block_admin_convert_text_to_array(variable_get('floating_block_to_apply', '')));
  variable_del('floating_block_to_apply');
}

Functions

Namesort descending Description
floating_block_uninstall Implements hook_uninstall().
floating_block_update_6000 Change variable name from floating_block_to_apply to floating_blocks and migrate settings to new format.