function _nodehierarchy_views_view_options in Node Hierarchy 6.3
Same name and namespace in other branches
- 5 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
- 6 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_nodehierarchy_node_form in nodehierarchy_views/
nodehierarchy_views.module - nodehierarchy_views_nodehierarchy_node_type_settings_form in nodehierarchy_views/
nodehierarchy_views.module - Implementation of hook_nodehierarchy_node_type_settings_form().
File
- nodehierarchy_views/
nodehierarchy_views.module, line 204 - Embed a view of children onto a node.
Code
function _nodehierarchy_views_view_options() {
$options = array();
$options[0] = '-- ' . t('NONE') . ' --';
$views = views_get_all_views();
foreach ($views as $view_name => $view) {
foreach ($view->display as $display_id => $display) {
if (_nodehierarchy_views_is_nh_view($view, $display_id)) {
$options["{$view_name}:{$display_id}"] = $view->name . ': ' . $display->display_title;
}
}
}
return $options;
}