You are here

function floating_block_update_6000 in Floating block 6

Change variable name from floating_block_to_apply to floating_blocks and migrate settings to new format.

File

./floating_block.install, line 21
Install, update, and uninstall functions for the floating_block module.

Code

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');
}