You are here

function views_rules_get_view in Views Rules 7

Loads a view with the display ID as given by views_rules_list_iterators().

5 calls to views_rules_get_view()
ViewsRulesFrameworkTestCase::testGetView in tests/views_rules.test
Tests retrieving a view by view and display names joined by a colon.
views_rules_collect_rows in rules/views_rules.action.inc
Collects view results.
views_rules_collect_rows_info_alter in rules/views_rules.action.inc
Alters info for the action.
views_rules_collect_rows_validate in rules/views_rules.action.inc
Validates the action.
views_rules_update_clean_collect_action_variable_names in ./views_rules.install
Cleans up variable names in collect actions.

File

./views_rules.module, line 107
Views & Rules deep-level integration.

Code

function views_rules_get_view($view_display_id, $reset = FALSE) {
  list($view_name, $display_name) = explode(':', $view_display_id, 2);
  if (($view = views_get_view($view_name, $reset)) && $view
    ->set_display($display_name)) {
    return $view;
  }
}