I'd like to set up a configuration page for my Drupal module that contains a dropdown where the user selects one of the available views. Is there an easy way to obtain a list of all available views on the system? All I need is an array of all the views' names.
+2
A:
Try the views_all_get_views function ... this returns an array of views, indexed by name, so you could wrap array_keys() around the result to get the names.
Dan U.
2010-06-20 20:37:20
Exactly what I needed. Thanks!
derekerdmann
2010-06-20 20:40:40