[support] php-code in block is not executed...

Fred Jones fredthejonester at gmail.com
Tue Jan 18 23:01:42 UTC 2011


>> In general tho mate, this is bad practice.  Put it in code somewhere,
>> not in a block. (like page.tpl.php or node.tpl.php).
>
> But where? And how can I have it displayed where I want,
> like blocks? I'm quite new to drupal...

Make a module and use:
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_block/6

Google for how to make your first custom Drupal module

HTH


More information about the support mailing list