Skip to main content
1 of 3
Oskar Calvo
  • 988
  • 10
  • 24

How to get the custom class added to a view

Views let people to add custom css class to a display. I'm looking to get this information.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']

Oskar Calvo
  • 988
  • 10
  • 24