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

Christian López Espínola clopez at emergya.es
Thu Dec 30 13:09:39 UTC 2010


Hi all,

I'm implementing a hook of hook_views_pre_render and I need to know if
the current display being rendered is a page.

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

Thanks in advance!

--
Christian López Espínola
Área de Proyectos

Emergya Consultoría
Tfno: +34 954 51 75 77
Fax: +34 954 51 64 73
www.emergya.es


More information about the development mailing list