You are here

function styleswitcher_update_7000 in Style Switcher 7.2

Remove hardcoded numeric delta from block.

File

./styleswitcher.install, line 21
Installation tasks.

Code

function styleswitcher_update_7000(&$sandbox) {

  // This operation is safe for 7.x-1.x to 7.x-2.x update because there will be
  // no update if there's no block with '0' delta.
  $renamed_deltas['styleswitcher'] = array(
    '0' => 'styleswitcher',
  );
  update_fix_d7_block_deltas($sandbox, $renamed_deltas, array());
}