I usually override a form template this way.
/**
* Implementation of hook_theme().
*/
function MODULE_theme() {
return array(
'user_login' => array(
'render element' => 'form',
'template' => 'user_login',
'path' => drupal_get_path('module', 'MODULE').'/templates',
),
);
}
I create templates/user_login.tpl.php in my module folder; then, I can override the form.
I tried overriding a node comment form this way, but it didn't work: The node comment form didn't use my custom template file.
I have googled a lot, but I got nothing about overriding a node comment form template.
How can I force Drupal to use a template file for the node comment form?