User login

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: 63

[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] =>
[title] =>
[content] =>

-- Select Country --AfghanistanAntarctica ArgentinaAustraliaBahreinBosniaBrasilChinaColombiaCongo RDCCubaEgyptEgypteEspanaFranceGhanaGreat BritainHaitiIndiaItaliaItalyKazakhstanKenya KoreaLebanonNorwayPakistanPeruPhillipinesRussiaThailandTurkeyUnited StatesUSAYemen


[zebra] => odd
[id] => 1
[block_zebra] => odd
[block_id] => 1
[directory] => sites/
[is_front] =>

_phptemplate_callback /var/www/d53/themes/engines/phptemplate/phptemplate.engine: 327 block,


Searched words: 
Drupal edit variables theme



phptemplate variables

Making additional variables available to your templates

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.