If we wanted to place this custom block into a page, we would simply substitute these values into our PHP code snippet (which we place in a node (page or other content type)) as follows:
<?php $block = module_invoke('block', 'block', 'view', 26); print $block['content']; ?>
Notice that the middle two terms ('block', 'view') always stay the same. You're simply updating the first and last term.
Voila
No comments:
Post a Comment