Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the following code in multiblock.module (lines 76-96):
function multiblock_call_block($delta, $op, $edit) {
$result = db_query("SELECT module, orig_delta, delta, multi_settings FROM {multiblock} WHERE delta='%s'", $delta);
if ($block_info = db_fetch_object($result)) {
// If this block is multiblock enabled, send it the delta of the block we're using.
if ($block_info->multi_settings == 1 ) {
$edit['multiblock_delta'] = array(
'#type' => 'value',
'#value' => $block_info->delta,
);
}
$edit['multiblock_delta'] = $delta;
$block = module_invoke($block_info->module, 'block', $op, $block_info->orig_delta, $edit);
// if ($op == 'view') {
// $block['orig_module'] = $block_info->module;
// $block['orig_delta'] = $block_info->orig_delta;
// }
return $block;
}
// No such multiblock, shouldn't ever happen.
return;
}
line 86 ($edit['multiblock_delta'] = $delta;
) overwrites possible result of the conditional statement right above.
Delta for multiblock-enabled blocks is then not taken from multiblock table.
This also forces the delta to be retrieved using $edit['multiblock_delta']
and not $edit['multiblock_delta']['#value']
as it used to be in the previous release therefore making this version of the module not back compatible.
Comments
Comment #2
intrafusionDrupal 6 is no longer support