Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Loading a block programatically
$module = "boxes"; // this is the name of whatever module actually creates the block, I so happen to love boxes.
$delta = "video_homepage_footer"; // this is the machine name of the block (or in this case box)
$block = (object) module_invoke($module, 'block', 'view', $delta);
$block->module = $module;
$block->delta = $delta;
print theme('block', $block);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.