matason's picture

CCK Allowed Values List, PHP code and hook_content_allowed_values_alter()

Posted by matason on Saturday, 2 January, 2010 - 10:31

Wooo, catchy blog post title eh?

It's good to keep PHP code out of your Drupal database right?

The flexibility afforded by adding PHP code to things like your "Allowed values list" for a CCK field is absolutely fantastic on one hand but niggles me on the other because the code ends up in the database and won't be version controlled.