The custom module is called, "epic_module". It defines several blocks, say "awesome_block" and "epic_block".
function epic_module_block_info() {
$blocks['awesome_block'] = array(
'info' => t('Awesome block'),
'cache' => DRUPAL_NO_CACHE,
);
$blocks['epic_block'] = array(
'info' => t('Epic Block'),
'cache' => DRUPAL_NO_CACHE,
);
return $blocks;
}
function epic_module_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'awesome_block':
// TO-DO: Set $block['content'], etc...
break;
case 'epic_block':
// TO-DO: Set $block['content'], etc...
break;
}
return $block;
}
I have also created a templates directory under my module's directory.
I'm confused by the naming conventions. I want to link the template files for the specified blocks.