function entityform_block_block_info in Entityform block 7
Implements hook_block_info().
File
- ./
entityform_block.module, line 11 - Render any entity form into a block.
Code
function entityform_block_block_info() {
$blocks = array();
$types = variable_get('entityform_block_types');
if (!empty($types)) {
foreach ($types as $key => $type) {
$blocks[$type] = array(
'info' => ucfirst($type),
'cache' => DRUPAL_NO_CACHE,
);
}
}
return $blocks;
}