I am creating a new module in drupal 7 called coolmodule and I'm trying to figure out how to bind content to the file sites/all/modules/coolmodule/coolmodule.tpl.php
file. Here's the block view code in my coolmodule.module;
function coolmodule_block_view($delta = '') {
$block['subject'] = t('My Special Module');
$block['content'] = theme('coolmodule', array('myvar' => 'helloworld'));
return $block;
}
But for some reason, pages with this block does not render sites/all/modules/coolmodule/coolmodule.tpl.php
. What am I doing wrong?