Skip to content

Instantly share code, notes, and snippets.

@fieke
Created October 28, 2013 14:34
Show Gist options
  • Save fieke/7197751 to your computer and use it in GitHub Desktop.
Save fieke/7197751 to your computer and use it in GitHub Desktop.
Clone webform block
function the_aim_picstory_block_info() {
$blocks = array();
// Webform footer block
$blocks['webform-footer-block'] = array(
'info' => t('CB - Webform footer block'),
);
return $blocks;
}
function the_aim_picstory_block_view($delta='') {
$block = array();
global $language;
switch ($delta) {case 'webform-footer-block':
$block = module_invoke('webform', 'block_view', 'client-block-11');
print render($block);
break;
}
return $block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment