Modifying CCK fieldgroups with hook_form_alter()

I was writing a module to conditionally hide a fieldset on a CCK node editing form based on whether the user is logged in or not, and for a while I was very puzzled as to why my custom module’s implementation of hook_form_alter wasn’t seeing any of the fieldsets defined by the CCK fieldgroup module.

I searched Google for the terms ‘cck fieldset hook_form_alter’, which led me to a helpful tip from Benjamin Melançon:

read more

Syndicate content

Twitter

  • @captain_science so glad you lliked them, especially the bow tie- it was a bit of a crap shoot! 3 years 34 weeks ago
  • Not sure we had enough pie http://flic.kr/p/8WnSf2 3 years 36 weeks ago
  • What part of "don't discuss politics in the lodge" is so &@$!?ing hard to understand? 3 years 37 weeks ago
  • photo.jpg http://flic.kr/p/8Hy5pe 3 years 43 weeks ago
  • It's about time http://flic.kr/p/8GcTJo 3 years 43 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key