function views_get_applicable_views

cis7 views.module views_get_applicable_views($type)
cle7 views.module views_get_applicable_views($type)
elmsmedia7 views.module views_get_applicable_views($type)
icor7 views.module views_get_applicable_views($type)
meedjum_blog7 views.module views_get_applicable_views($type)
mooc7 views.module views_get_applicable_views($type)

Return a list of all views and display IDs that have a particular setting in their display's plugin settings.


Return value

@code array( array($view, $display_id), array($view, $display_id), );

6 calls to views_get_applicable_views()
EntityReference_SelectionHandler_Views::settingsForm in sites/all/modules/ulmus/entityreference/plugins/selection/EntityReference_SelectionHandler_Views.class.php
Implements EntityReferenceHandler::settingsForm().
eva_get_views in sites/all/modules/ulmus/eva/eva.module
Get a list of views and displays attached to speficic entities.
views_content_context_view_get_children in sites/all/modules/ulmus/ctools/views_content/plugins/contexts/
views_content_context_view_settings_form in sites/all/modules/ulmus/ctools/views_content/plugins/contexts/
views_content_view_from_argument_get_children in sites/all/modules/ulmus/ctools/views_content/plugins/relationships/

... See full list


sites/all/modules/ulmus/views/views.module, line 1387
Primarily Drupal hooks and global API functions to manipulate views.


function views_get_applicable_views($type) {
  // @todo: Use a smarter flagging system so that we don't have to
  // load every view for this.
  $result = array();
  $views = views_get_all_views();

  foreach ($views as $view) {
    // Skip disabled views.
    if (!empty($view->disabled)) {

    if (empty($view->display)) {
      // Skip this view as it is broken.
      vsm(t("Skipping broken view @view", array('@view' => $view->name)));

    // Loop on array keys because something seems to muck with $view->display
    // a bit in PHP4.
    foreach (array_keys($view->display) as $id) {
      $plugin = views_fetch_plugin_data('display', $view->display[$id]->display_plugin);
      if (!empty($plugin[$type])) {
        // This view uses hook menu. Clone it so that different handlers
        // don't trip over each other, and add it to the list.
        $v = $view->clone_view();
        if ($v->set_display($id) && $v->display_handler->get_option('enabled')) {
          $result[] = array($v, $id);
        // In PHP 4.4.7 and presumably earlier, if we do not unset $v
        // here, we will find that it actually overwrites references
        // possibly due to shallow copying issues.
  return $result;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.