You are here

function views_ui_views_wizard_defaults in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views_ui/views_ui.module \views_ui_views_wizard_defaults()

Helper function to define the default values for a Views wizard plugin.

Return value

array An array of defaults for a views wizard.

3 calls to views_ui_views_wizard_defaults()
views_ui_ctools_plugin_type in ./views_ui.module
Inform CTools that the Views wizard plugin can have child plugins.
views_ui_get_wizard in ./views_ui.module
Fetch metadata on a specific views ui wizard plugin.
views_ui_get_wizards in ./views_ui.module
Fetch metadata for all content_type plugins.

File

./views_ui.module, line 664
Provide structure for the administrative interface to Views.

Code

function views_ui_views_wizard_defaults() {
  return array(
    // The children may, for example, be a different variant for each node type.
    'get children' => NULL,
    'get child' => NULL,
    // Title and base table must be populated.  They are empty here just
    // so they are documented.
    'title' => '',
    'base_table' => NULL,
    // This is a callback that takes the wizard as argument and returns
    // an instantiazed Views UI form wizard object.
    'get_instance' => 'views_ui_get_form_wizard_instance',
    'form_wizard_class' => array(
      'file' => 'views_ui_base_views_wizard',
      'class' => 'ViewsUiBaseViewsWizard',
    ),
  );
}