Hello,

I created a block (mon_block.tpl.php).

I see this block in my QuickTabs but I can not.
What I put in QuickTabs:

<?php
$tabs['first'] = array(
  'title' => t('Coloris'),
  'type' => 'block',
  'bid' => 'mon_block',
  'hide_title' => TRUE,
);
$quicktabs['qtid'] = 'any-unique-id';
$quicktabs['tabs'] = $tabs;
$quicktabs['style'] = 'Excel';
$quicktabs['ajax'] = FALSE;
print theme('quicktabs', $quicktabs);
?>

What's in my module to display the block:

<?php
function mon_module_block($op = 'list', $delta = 0, $edit = array ()) {
   switch($op) {
      case 'list':
         return array('mon_block'=>array('info'=>'Mon Block'));
      case 'view': {
         if ($delta=='mon_block') {
               return array(
                    'subject'=>'Titre de mon bloc',
                    'content'=>theme('mon_block', $node));
         }
      }
   }
}
?>

If I understand correctly, I have added $block_id to make it work? If yes, when added to my module?

Thank you in advance for your help!

Comments

pasqualle’s picture

#332895-14: render quicktab programatically
the block bid field is specially formatted.

I guess in your case it should be

  'bid' => 'mon_module_delta_mon_block',
Clément’s picture

Status: Active » Fixed

Thank you very much for your help, now it works!!!

Status: Fixed » Closed (fixed)

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