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
Comment #1
pasqualle#332895-14: render quicktab programatically
the block bid field is specially formatted.
I guess in your case it should be
Comment #2
Clément commentedThank you very much for your help, now it works!!!