by Hubert Chathi.
You can use the same syntax in a block. Of course, you'll probably need to add a "global $PAGE;" statement, so that it can find the $PAGE object, since you would be making the call within a function.