You are here

function _nodehierarchy_views_view_options in Node Hierarchy 6

Same name and namespace in other branches
  1. 5 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
  2. 6.3 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
  3. 6.2 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
  4. 7.4 nodehierarchy_views/nodehierarchy_views.module \_nodehierarchy_views_view_options()
  5. 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;
}