[support] PHP custom code in drupal block

sivaji j.g sivaji2009 at gmail.com
Sun Apr 19 18:24:59 UTC 2009


On Sun, Apr 19, 2009 at 11:46 PM, Shai Gluskin <shai at content2zero.com>wrote:

> Nikhil,
>
> In Drupal 6 you need to turn on the ability to use PHP inline by turning on
> that module in the core/optional section of the module list page.
>
> Then you need to allow that imput format for a particular role. However,
> you don't need to do that part if you just want user/1 to be able to add php
> code.
>
> You add a custom block and click the php radio under imput format.


bleh :P it is not a good practice to do.

It is not recommended to use PHP code in blocks it my break your site,
create a new module, write hook_block function and use it.

>
>
>

-- 
Thanks a lot
-----------------------------------------
http://ubuntuslave.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090419/dbe05155/attachment.htm>


More information about the support mailing list