1 Jun
2005
1 Jun
'05
3:50 p.m.
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