User login

Public

Zen theme in wrong location on live server breaks sites using zen subthemes when database restored on test and dev

Production working fine, copy database back for test and dev, and the environment breaks, fatally:

Fatal error: Call to undefined function zen_theme() in
/var/www/example/drupal/sites/default/themes/example/template.php on line 85

And there is something different about the Zen being seen by the two sites, but the code seems identical, and agariclabs is a restore of the stage database.

Clean string for use as HTML classes and IDs

Zen theme has a handy function to take any string and make it safe for an HTML/CSS id:

zen_id_safe($string)

drupal remove quotation marks

How to theme a form in Drupal 6

Theming a form, like theming almost anything in Drupal 6, requires registering the theme function with hook_theme in a module or a theme. The FormAPI docs and the Drupal 5.x to Drupal 6.x form upgrade guide (Drupal 5.x to 6.x FormAPI changes appear to remain a little deficient in explaining this.

See for instance How to theme a form in Drupal 6.x?

Syndicate content