Create block in template.php I have the feeling that I'm doing something stupid or missing something obvious...
I want to create a block in template.php in my custom template but it is not showing in admin/structure/block
The code i use is simple:

/**
 * Implements hook_block_info().
 */
function MYTHEMENAME_block_info() {
  $blocks = array();
  $blocks['eeeeeeee'] = array(
    // The name that will appear in the block list.
    'info' =&gt; t('eeeeeeeeeee'),
  );
  return $blocks;
}


Then i created a custom module, to see if a have a typo,  with the same code. Just changed MYTHEMENAME with MYMODULENAME and I can see it in admin/structure/block


I tried changing MYTHEMENAME to phptemplate
Cleared the cache many times


Is it even possible to create a block in template.php?
I'm not sure this is possible. You would create the custom block in a module, add content to it there as well. Then you can theme it or call it in various places inside your theme as well as theme the actual block. That is the usual use scenario for blocks. I will try to add some links in just a bit with more explanation.