I'm using hook_preprocess_node in a module. In that, I check whether the node type, and on satisfying the condition I'm doing a theme_hook_suggestions. My tpl.php files are inside my modules template folder, It is not taking the tpl file I have suggested. I have searched a lot, but didn't find any solutions
Any solution would be apprecaited Here is my code
/**
* Implements hook_preprocess_node().
*/
function mymodule_preprocess_node(&$varaiables) {
if (isset($varaiables['node'])) {
$node = $varaiables['node'];
$field_template_list = $node->field_template_list[$node->language][0]['value'];
if ($node->type == 'event') {
$varaiables['theme_hook_suggestions'][] = 'module_name_' . $field_template_list;
}
}
}