[support] [drupal support] Blocks and php code question

tony maciejowski tony at tony-mac.com
Mon May 23 01:08:26 UTC 2011


Awesome you 2.
Thanks.

On Sun, May 22, 2011 at 5:56 PM, Shai Gluskin <shai at content2zero.com> wrote:

> Hi Tony,
>
> You need to go to: admin/modules/list
>
> and then turn on the module in the core optional modules section called,
> "PHP Filter."
>
> ---
>
> Of course I've done exactly what you are doing... but FYI it isn't a best
> practice to use the PHP Filter; it would be better to create the block via a
> custom module so that your custom PHP is saved as part of the codebase and
> not in the database. Another reason is that it is dangerous to give users
> the power to insert PHP code.
>
> But as a newbie, don't be hard on yourself, but make sure not to allow any
> other users to use the PHP filter.
>
> And do note that a parse error in the PHP can bring down the whole site. So
> backup often!
>
> Shai
>
> On Sun, May 22, 2011 at 8:47 PM, tony maciejowski <tony at tony-mac.com>wrote:
>
>> Dear All,
>> I am trying to create a custom block per Tomlinson's Beginning Drupal 7.0
>> on page 81.
>> He instructs one to go to Structure; Blocks; add new block. then further:
>> He says " after entering the (PHP) code, change the Text format select
>> list from Filtered HTML to PHP code". I only see options for *filtered
>> HTML*; *Full HTML *or *Plain Text*. No "PHP code".
>> How come?
>>
>> Thanks
>> Tony
>>
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110522/1334f121/attachment.html 


More information about the support mailing list