You are here

function floating_block_update_7000 in Floating block 7

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

File

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

Code

function floating_block_update_7000() {
  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');

  // The configuration form has moved rebuild the menu.
  menu_rebuild();
}