I am developing a custom module and I need to implement a theme. The result of my code below is that the code inside the block does not print because Drupal can't find the theme. I'm using hook_theme() and I'm not sure what I am missing.
Directory structure
jsblock.module code
/**
* Implements hook_theme().
*/
function jsblock_theme($existing, $type, $theme, $path){
return array(
'jsblock_custom_theme' => array(
'variables' => array('content' => NULL),
'template' => 'panels_pane__block__jsblock_jsblock',
'path' => drupal_get_path('module', 'jsblock') .'panels_pane__block__jsblock_jsblock',
)
);
}
I've been able to print the block by dropping the the file in the theme templates folder, but not when it is inside the module directory. Can someone please tell me what is wrong with my code?