Okay, so I've searched high and low and seem to be getting conflicting information on the use of
hook_form_alter in template.php.
I have found this article (http://drupal.org/node/154137) (on drupal) that demonstrates the use of
While there is lots of half-stated mentions that you can't use
hook_ functions in template.php.
Looking at the
hook_form_alter API(7) documentation on drupal.org also does not mention that it cannot be used in template.php. There is even mention of the theme being the last thing to process the function in the processing stack.
Both methods have been tried and neither work (yes, I have cleared the cache).
Can someone please give me a definitive answer on if
hook_form_alter can be used in template.php; and if yes, any possible reasons as to why the code in my template.php is not working.
Appreciate your help.
(p.s. template.php is working as I have some other functions in it that are working fine).