Another of the many reasons Drupal SUCKS!
EVERYTHING is a global function! What the hell is that about? Ever heard of classes fellas... fail.
UPDATE: You thought one Drupal SUCKS post in a day was enough...? Nope. I just found another gem.
Drupal requires you list a custom template in hook_theme() to be loaded later by the theme() function. What they don't mention anywhere in the documentation is that you have to clear the "theme registry" cache after making any changes to the function. So Drupal takes the output of that function and stores it in the database! But it is not intelligent enough to know the function has changed and maybe it should re-run for new values. Fine, okay, I can get past storing the cached function output in the database, but at least mention on the documentation page for hook_theme() that you need to clear the stupid theme registry! Aaaaarrgggghhhhhhh! Think I'm making this up? Look for yourself http://api.drupal.org/api/function/hook_theme
See anything mentioned in there? Didn't think so. Only after much Google searching and reading of random posts of people having problems did I finally discover the issue. Drupal YOU SUCK!


