You are here

protected function ViewsUiBaseViewsWizard::retrieve_validated_view in Views (for Drupal 7) 7.3

1 call to ViewsUiBaseViewsWizard::retrieve_validated_view()
ViewsUiBaseViewsWizard::create_view in plugins/views_wizard/views_ui_base_views_wizard.class.php
Create a View from values that have been already submitted to validate().

File

plugins/views_wizard/views_ui_base_views_wizard.class.php, line 899
Provides the interface and base class for Views Wizard plugins.

Class

ViewsUiBaseViewsWizard
A very generic Views Wizard class - can be constructed for any base table.

Code

protected function retrieve_validated_view($form, $form_state, $unset = TRUE) {
  $key = hash('sha256', serialize($form_state['values']));
  $view = isset($this->validated_views[$key]) ? $this->validated_views[$key] : NULL;
  if ($unset) {
    unset($this->validated_views[$key]);
  }
  return $view;
}