function views_ui_get_wizard in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 7.3 views_ui.module \views_ui_get_wizard()
Fetch metadata on a specific views ui wizard plugin.
Parameters
$wizard_type: Name of a wizard, or name of a base table.
Return value
An array with information about the requested wizard type.
1 call to views_ui_get_wizard()
- views_ui_wizard_form_validate in views_ui/
admin.inc - Validate the add view form.
File
- views_ui/
views_ui.module, line 470 - Provide structure for the administrative interface to Views.
Code
function views_ui_get_wizard($wizard_type) {
$wizard = views_get_plugin_definition('wizard', $wizard_type);
// @todo - handle this via an alter hook instead.
if (!$wizard) {
// Must be a base table using the default wizard plugin.
$base_tables = views_fetch_base_tables();
if (!empty($base_tables[$wizard_type])) {
$wizard = views_ui_views_wizard_defaults();
$wizard['base_table'] = $wizard_type;
$wizard['title'] = $base_tables[$wizard_type]['title'];
}
}
return $wizard;
}