[support] Chicken/Egg Problem with CCK Field Permissions

Metzler, David metzlerd at evergreen.edu
Fri Aug 14 14:30:01 UTC 2009


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 at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Alexander Arul
Sent: Thursday, August 13, 2009 6:52 PM
To: support at 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 at 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/ ]
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090814/2a8ab917/attachment-0001.htm>


More information about the support mailing list