Remember return $variables line in function _phptemplate_variables
So, it turns out that in your _phptemplate_variables($hook, $variables = array())
function in template.php, the return $variables
line is very, very important.
As in your site self-destructs if you don't have it or accidentally comment it out.
Another helpful tip from Agaric Design Collective!
(And no, we don't learn these the hard way. Angels descend from heaven and whisper Drupal truths in our ears, complete with error output.)
function file: line arguments
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/d53/themes/engines/phptemplate/phptemplate.engine on line 63.
array_merge /var/www/d53/themes/engines/phptemplate/phptemplate.engine: 63Array
(
[block] => stdClass Object
(
[module] => wsf_action
[delta] => countrydropdown
[theme] => bealestreet_wsf
[status] => 1
[weight] => -9
[region] => sidebar_right
[custom] => 0
[throttle] => 0
[visibility] => 0
[pages] =>
place/*
place
[title] =>
[content] =>-- Select Country --AfghanistanAntarctica ArgentinaAustraliaBahreinBosniaBrasilChinaColombiaCongo RDCCubaEgyptEgypteEspanaFranceGhanaGreat BritainHaitiIndiaItaliaItalyKazakhstanKenya KoreaLebanonNorwayPakistanPeruPhillipinesRussiaThailandTurkeyUnited StatesUSAYemen
)
[zebra] => odd
[id] => 1
[block_zebra] => odd
[block_id] => 1
[directory] => sites/wsf2008.net/themes/bealestreet_wsf
[is_front] =>
),
_phptemplate_callback /var/www/d53/themes/engines/phptemplate/phptemplate.engine: 327 block,
Comments
phptemplate
phptemplate variables
http://drupal.org/node/11811
Making additional variables available to your templates
http://drupal.org/node/16383
Post new comment