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

  • RT @usonian: New post: Ship in the Clouds: Clawhammer Banjo Tablature http://tinyurl.com/y8uvxoc 5 years 13 weeks ago
  • New post: Ship in the Clouds: Clawhammer Banjo Tablature http://tinyurl.com/y8uvxoc 5 years 13 weeks ago
  • RT @godfly: Employee. You are the engine that drives this economy. Too bad you’re not the driver. 5 years 13 weeks ago
  • Hey FYE: reason your Keene store might be closing: your 30% off liquidation prices are still about 20% more than Amazon. Good riddance. #fb 5 years 14 weeks ago
  • Haw. Did a google search including the word 'bathtub'. Sponsored ad next to results: "Dinner with John Lithgow" #fb 5 years 14 weeks ago

Older

Contact

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