I don't thinks so, but am not 100% sure. What I do when I need this kind of integration is I do develop a small custom module that goes with me theme to provide the hooks that I need. Then, if I need infromation passed to the theme, I call those functions int he theme variables hook in template.php within the theme. You can get some pretty slick integegrationi between the module and theme layers going that way.
Don't be too worried about creating a custom module. It really only takes making an .info file (with a few lines) and a single .module file with just the one hook_form_alter function in it. There's nothing else required.
________________________________
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Alexander Arul Sent: Thursday, August 13, 2009 6:52 PM To: support@drupal.org Subject: Re: [support] Chicken/Egg Problem with CCK Field Permissions
Is it possible to use hook_form_alter in templates?
On Thu, Aug 13, 2009 at 11:46 PM, Fred Jones fredthejonester@gmail.com wrote:
> In your foo.module you use a hook_form_alter to set the [#required] to > false. So that would be the only way? A custom module? -- [ Drupal support list | http://lists.drupal.org/ ]