I guess I'm a bit confused. I'm trying to enable my module(s) for Multiblock, which sort of means I need something to uniquely identify the variables. But the $edit array is empty on $op=configure; there is no 'multiblock_delta' element.

Comments

nancydru’s picture

BTW, in making sure MB knows I enabled my module, I modified "theme_multiblock_general" to show the enabled status. This might be useful information for other developers.

function theme_multiblock_general($add_block_form, $multiblocks) {
  $output = '';
  $noyes = array('No', 'Yes');
  
  $output .= '<p><h3>'. t('Add Instance') .'</h3>'. $add_block_form .'</p>';
  
  $header = array(t('Title'), t('Original Block Title'), t('Original Module'), t('Enabled'), t('Original Delta'), t('Action'));
  
  foreach ($multiblocks as $row) {
    $delete_link = l(t('Delete'), 'admin/build/block/instances/delete/'. $row->delta);
    $title = multiblock_get_block_title($row->module, $row->orig_delta);
    $mb_enabled = $noyes[$row->multi_settings];
    $rows[] = array(check_plain($row->title), $title, $row->module, $mb_enabled, $row->orig_delta, $delete_link);
  }
  
  $output .= '<p><h3>'. t('Manage Instances') .'</h3>'. theme('table', $header, $rows) .'</p>';
  
  return $output;
}
nancydru’s picture

Okay, I think I see the problem. There is a typo in multiblock_add:

  db_query($sql, $delta, $block_instance->title, $original_block->module, $original_block->delta, $block_instance->mb_enabled);
nancydru’s picture

Priority: Normal » Critical

I see that this has already been fixed, but you are not showing the -dev releases. Please enable them or create a new release.

nancydru’s picture

Title: Enabling my module for MB » Enable -dev's or create new release

Or you can let me help maintain this module by granting CVS access to me (check my profile for references to my abilities).

andrewlevine’s picture

Status: Active » Fixed

I created the dev releases. I'm happy to add you as a maintainer if you are interested in working more on the module. Let me know.

nancydru’s picture

Sure, I'll help. I already have 20+ modules. And thanks.

andrewlevine’s picture

OK, I added you. I just ask that you open/comment on an issue before making any changes so everyone who is keeping track will know. Thanks for helping out!

nancydru’s picture

No problem. Thanks.

Status: Fixed » Closed (fixed)

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