function ViewsUiBaseViewsWizard::create_view
3.x views_ui_base_views_wizard.class.php | ViewsUiBaseViewsWizard::create_view($form, &$form_state) |
Create a View from values that have been already submitted to validate().
Throws
ViewsWizardException if the values have not been validated.
Overrides ViewsWizardInterface::create_view
File
- plugins/
views_wizard/ views_ui_base_views_wizard.class.php, line 921 - 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
function create_view($form, &$form_state) {
$view = $this->retrieve_validated_view($form, $form_state);
if (empty($view)) {
throw new ViewsWizardException(t('Attempted to create_view with values that have not been validated'));
}
return $view;
}