function views_ui_get_form_wizard_instance

Get form wizard instance.

1 string reference to 'views_ui_get_form_wizard_instance'
views_ui_views_wizard_defaults in ./views_ui.module
Helper function to define the default values for a Views wizard plugin.

File

./views_ui.module, line 701

Code

function views_ui_get_form_wizard_instance($wizard) {
    if (isset($wizard['form_wizard_class']['class'])) {
        $class = $wizard['form_wizard_class']['class'];
        return new $class($wizard);
    }
    else {
        return new ViewsUiBaseViewsWizard($wizard);
    }
}