I have a problem with theme hook suggestion for language switcher block. I just need to place theme_links__locale_block() in MYMODULE.module file
My module:
/**
* Implements hook_theme()
*/
function MYMODULE_theme() {
return array(
'MYMODULE_links' => array(
'variables' => array(
'links' => NULL,
'attributes' => NULL,
'heading' => NULL
)
)
);
}
/**
* It doesn't work...
*/
function theme_MYMODULE__locale_block(&$variables) {
// custom function code ...
}
It works in my template.php file:
function MYTHEME_links__locale_block(&$variables) {
// custom function code ...
}
I don't want to leave it in template.php because it is a part of my module.
Any help would be appreciated.