You use module_invoke($module, $hook, $block_argument, $delta)
Paramerters
$module The name of the module (without the .module extension). = 'ddblock'
$hook The name of the hook to invoke. = 'block'
$block_argument = 'view'
$delta block number of the block (you can find the number of the block if you hover the configure link for the block)
$delta - block number of the block (you can find the number of the block if you hover the configure link for the block)
If you use your fourth ddblock block you would need to use 4, the fifth ddblock block 5 and the fifteenth ddblock block 15.
In your case you use the third ddblock block and you need to use 3 for the $delta.
Hope this explains why you need to use 3 in your case.
i'm trying to make it work since two weeks, i have created a ddblock named ddblockTest. (it is listed in the blocks section)
so then, y create a new article and try to add the block in that way:
<?
$block = module_invoke('ddblockTest', 'block', 'view','15');
print $block['content'];
?>
In the module_invoke function the parameters are as follow
- the module to invoke: always 'ddblock',
- the hook to invoke: always 'block',
- the hook_block op: always 'view'
- the delta of the block: depends on the delta of the block
You can find the delta of the block by hovering the configure link of your: ddblockTest block in the blocks configuration page.
If you did and it does not solve your issue, please make an issue in the issue queue of the module and give a link to the slideshow on your Internet site.
- We install and configure ddblock for $40, see: packages
- Slideshow theme customizations, please fill out the design requirements questionnaire to create an efficient workflow.
- For other drupal related services contact us via the contact form
Re: how to embed the ddblock content into the node
If you use php as input type you can embed a dynamic display block (or any block) into a page with the following code
You use module_invoke($module, $hook, $block_argument, $delta)
Paramerters
$module The name of the module (without the .module extension). = 'ddblock'
$hook The name of the hook to invoke. = 'block'
$block_argument = 'view'
$delta block number of the block (you can find the number of the block if you hover the configure link for the block)
Hope this helps you further
Philip
Change 15 to 3
Note: to get this to work for me I had to change the '15' to '3'
Not sure why, but in order to embed other modules I used this number.
Re: Change 15 to 3
the last value is the delta of the block.
$delta - block number of the block (you can find the number of the block if you hover the configure link for the block)
If you use your fourth ddblock block you would need to use 4, the fifth ddblock block 5 and the fifteenth ddblock block 15.
In your case you use the third ddblock block and you need to use 3 for the $delta.
Hope this explains why you need to use 3 in your case.
it doesn't work for me
Hi.
i'm trying to make it work since two weeks, i have created a ddblock named ddblockTest. (it is listed in the blocks section)
so then, y create a new article and try to add the block in that way:
<?
$block = module_invoke('ddblockTest', 'block', 'view','15');
print $block['content'];
?>
but i get a white page only. What´s wrong?
Thanks in advance
Re: it doesn't work for me
In the module_invoke function the parameters are as follow
- the module to invoke: always 'ddblock',
- the hook to invoke: always 'block',
- the hook_block op: always 'view'
- the delta of the block: depends on the delta of the block
You can find the delta of the block by hovering the configure link of your: ddblockTest block in the blocks configuration page.
Hope this helps you further, please let me know.
Sorry, i forgot to change the
Sorry, i forgot to change the 15 in the post, but in my script it's '2'.
<?
$block = module_invoke('ddblock', 'block', 'view','2');
print $block['content'];
?>
the page is white.
Re: Sorry, i forgot to change the
Did you use input type PHP?
If you did and it does not solve your issue, please make an issue in the issue queue of the module and give a link to the slideshow on your Internet site.