[drupal-devel] [drupal-infrastructure] Drupal cache statistics
Gerhard Killesreiter
killesreiter at physik.uni-freiburg.de
Wed Jun 1 13:50:52 UTC 2005
On Wed, 1 Jun 2005, Karoly Negyesi wrote:
> > > > comments if you agree to make the custom PHP settings for blocks
> > > > return
> > > > an array of allowed paths instead of just TRUE or FALSE.
> > >
> > > I'm afraid that isn't a workable solution.
> >
> > Why do you think so? Your current code is something like:
> >
> > if (arg(0) == 'forum') return TRUE;
> > if (arg(0) == 'node') return TRUE;
>
> The custom PHP settings are, well, custom PHP code. You may want to display
> a block only for new users. On the week of christmas. Under red moon.
> err... whatever.
No problem:
if ($moon == 'red') return array('node/*');
Try again. :)
Cheers,
Gerhard
More information about the drupal-devel
mailing list