You are here

function block_upload_update_7100 in Block Upload 7

Moves first block settings to multiple block structure.

Don't forget to select block visibility settings manually.

File

./block_upload.install, line 13
Create the first block upload of many or convert it from the single block.

Code

function block_upload_update_7100() {

  // Move field name.
  if ($block_field = variable_get('block_upload_field', '')) {
    variable_set('block_upload_1_field', $block_field);
    variable_del('block_upload_field');
  }

  // Move plupload setting.
  if ($plupload_status = variable_get('block_upload_plupload_status', 0)) {
    variable_set('block_upload_1_plupload_status', $plupload_status);
    variable_del('block_upload_plupload_status');
  }
}