Hi,

Thanks so much for this module, its just what I needed.

I have a small problem when developing my custom blocks. I followed the example as per http://drupal.org/node/399634 and I never get a value for $edit['multiblock_delta'] so my multiple instances all share the same custom configuration.

I'm using Drupal 6.22.

Regards
Steve

CommentFileSizeAuthor
#1 multiblock-pass_mutliblock_delta.patch552 bytesoknate
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

oknate’s picture

berimbolo’s picture

Version: 6.x-1.3 » 7.x-1.1

I had the same issue using multiblock with Drupal 7.
I made similar changes to oknate's Drupal6 patch and it worked fine.
It's been almost 10 months since this was posted, so hopefully the patch will be committed soon.

NancyDru’s picture

It would be nice if this was marked as RTBC.

berimbolo’s picture

Status: Active » Reviewed & tested by the community

Done, thanks for the tip NancyDru.

  • intrafusion committed d9045c2 on 6.x-1.x authored by oknate
    Issue #1335418 by oknate: No value for $edit['multiblock_delta']
    
intrafusion’s picture

Version: 7.x-1.1 » 6.x-1.x-dev
Issue summary: View changes

This patch has been applied and a new release has been rolled

intrafusion’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mejdzer’s picture

I believe there is something wrong with this patch.
$edit['multiblock_delta'] = $delta; overwrites whatever the result of the following code could be:

if ($block_info->multi_settings == 1 ) {
  $edit['multiblock_delta'] = array(
     '#type' => 'value',
     '#value' => $block_info->delta,
   );
}

resulting in $edit['multiblock_delta'] being always a simple variable and not an array.
This change is not back compatible and requires changes in custom modules, ex.:
From this:

$multiblock_delta = $edit['multiblock_delta']['#value'];

to this:

$multiblock_delta = $edit['multiblock_delta'];

Ref: multiblock.module v.6.1.5, function multiblock_call_block, lines 76-96