[development] Block PHP code returns true

Victor Kane victorkane at gmail.com
Thu Aug 30 21:41:02 UTC 2007


here's one of my that is working, I think the return may throw things for a
loop:

<?php echo drupal_is_front_page() ?>

saludos,

Victor Kane
http://awebfactory.com.ar

On 8/30/07, Tony Guntharp <fusion94 at damagestudios.net> wrote:
>
> All,
> I'm trying to show a block only if a particular cookie has been set.
> Is there any reason why this statement isn't working?
>
> <?php
> if($_COOKIE['FONALITYreseller']) {
>    return TRUE;
> } else {
>    return FALSE;
> }
> ?>
>
> thanks
>
> -t
>
> Tony Guntharp
> Co-Founder SourceForge.net
> fusion94 at damagestudios.net
> 1-415-692-5507
> 1-415-680-5361
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070830/007b488a/attachment.htm 


More information about the development mailing list