开发者

Get a List of Available Drupal Views

开发者 https://www.devze.com 2023-01-03 22:34 出处:网络
I\'d like to set up a configuration page for my Drupal module t开发者_开发知识库hat contains a dropdown where the user selects one of the available views.Is there an easy way to obtain a list of all a

I'd like to set up a configuration page for my Drupal module t开发者_开发知识库hat 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消