views_get_all_views

Versions
6 – 7
views_get_all_views($reset = FALSE)

Return an array of all views as fully loaded $view objects.

Parameters

$reset If TRUE, reset the static cache forcing views to be reloaded.

▾ 28 functions call views_get_all_views()

acquia_agent_update_6000 in contributions/acquia_connector/acquia_agent/acquia_agent.install
Warn users who are upgrading from a pre-release version of CCK about any broken Views on their site.
cck_gallery_admin_form in contributions/cck_gallery/cck_gallery.admin.inc
custom_breadcrumbs_views_form in contributions/custom_breadcrumbs/custom_breadcrumbs_views/custom_breadcrumbs_views.module
Displays an edit form for a views breadcrumb.
custom_pagers_form in contributions/custom_pagers/custom_pagers.admin.inc
hs_taxonomy_views_hierarchical_select_config_info in contributions/hierarchical_select/modules/hs_taxonomy_views.module
Implementation of hook_hierarchical_select_config_info().
install_custom_pagers_add_pager in contributions/install_profile_api/contrib/custom_pagers.inc
Create a custom pager.
mm_views_config in contributions/media_mover/contrib/mm_views/mm_views.module
configuration options for harvesting from a view
nodecomment_form_node_type_form in contributions/nodecomment/nodecomment.module
Implementation of hook_form_node_type_form_alter().
nodereference_field_settings in contributions/cck/modules/nodereference/nodereference.module
Implementation of hook_field_settings().
og_views_field_allowed_values in contributions/og/og_views/og_views.module
Get all the Views.
og_views_form_og_admin_settings_alter in contributions/og/modules/og_views/og_views.module
Implementation of hook_form_TAG_alter().
openlayers_views_openlayers_layers in contributions/openlayers/modules/openlayers_views/openlayers_views.module
Implementation of hook_openlayers_layers().
signup_settings_form in contributions/signup/includes/admin.settings.inc
Form builder for the settings page under admin/setttings/signup
template_preprocess_views_ui_list_views in contributions/views/includes/admin.inc
Preprocess the list views theme
userreference_field_settings in contributions/cck/modules/userreference/userreference.module
Implementation of hook_field_settings().
views_block in contributions/views/views.module
Implementation of hook_block
views_bulk_operations_update_6000 in contributions/views_bulk_operations/views_bulk_operations.install
Implementation of hook_update_N().
views_content_views_content_type_content_types in contributions/ctools/views_content/plugins/content_types/views.inc
Return all content types available.
views_content_views_content_type_content_types in contributions/ctools/views_content/plugins/content_types/views.inc
Return all content types available.
views_content_views_panes_content_type_content_types in contributions/ctools/views_content/plugins/content_types/views_panes.inc
Return all content types available.
views_content_views_panes_content_type_content_types in contributions/ctools/views_content/plugins/content_types/views_panes.inc
Return all content types available.
views_export_export_form in contributions/views/views_export/views_export.module
Form to choose a group of views to export.
views_features_export_options in contributions/features/includes/features.views.inc
Implementation of hook_features_export_options().
views_get_applicable_views in contributions/views/views.module
Return a list of all views and display IDs that have a particular setting in their display's plugin settings.
views_ui_admin_convert in contributions/views/includes/convert.inc
Page callback for the tools - Views 1 convert page
views_views_exportables in contributions/views/views.module
Implementation of hook_views_exportables().
_context_contrib_get_views in contributions/context/context_contrib/context_contrib.module
Helper function to generate a list of database and module provided views.
_migrate_dashboard_form in contributions/migrate/migrate_pages.inc
Form definition for dashboard page

Code

contributions/views/views.module, line 837

<?php
function views_get_all_views($reset = FALSE) {
  static $views = array();

  if (empty($views) || $reset) {
    $views = array();

    // First, get all applicable views.
    views_include('view');
    $views = view::load_views();

    // Get all default views.
    $status = variable_get('views_defaults', array());

    foreach (views_discover_default_views() as $view) {
      // Determine if default view is enabled or disabled.
      if (isset($status[$view->name])) {
        $view->disabled = $status[$view->name];
      }

      // If overridden, also say so.
      if (!empty($views[$view->name])) {
        $views[$view->name]->type = t('Overridden');
      }
      else {
        $view->type = t('Default');
        $views[$view->name] = $view;
      }
    }

  }
  return $views;
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.