[development] [views] Knowing the display type of a view

Nikola Kotur kotnick at gmail.com
Thu Dec 30 14:42:37 UTC 2010


On Thu, 2010-12-30 at 14:09 +0100, Christian López Espínola wrote:

> I'm right now using
>    substr($view->current_display, 0, 4) == 'page'
> but I wonder if there is any way more elegant. 


That's how I use it, too. And it seems quite elegant to me :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20101230/564e9f07/attachment.html 


More information about the development mailing list