function _nodehierarchy_views_view_options in Node Hierarchy 6
Same name and namespace in other branches
- 5 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
- 6.3 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
- 6.2 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
- 7.4 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
- 7.2 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
Prepare a list of views for selection.
2 calls to _nodehierarchy_views_view_options()
- nodehierarchy_views_nodehierarchyapi in nodehierarchy_views/
nodehierarchy_views.module - Implementation of hook_nodehierarchyapi().
- nodehierarchy_views_update in nodehierarchy_views/
nodehierarchy_views.module - Update the given embedded view.
File
- nodehierarchy_views/
nodehierarchy_views.module, line 179 - Views.module integration for nodehierarchy.module.
Code
function _nodehierarchy_views_view_options() {
$options = array();
$options[0] = '-- ' . t('NONE') . ' --';
$views = views_get_all_views();
foreach ($views as $key => $view) {
$options[$key] = $view->name;
}
return $options;
}