function views_ui_ajax_forms

Returns information about subforms for editing the pieces of a view.

Parameters

string|null $key: The form for which to retrieve data. If NULL, the list of all forms is returned.

4 calls to views_ui_ajax_forms()
views_ui_ajax_form in drupal/core/modules/views/views_ui/admin.inc
Generic entry point to handle forms.
views_ui_build_form_url in drupal/core/modules/views/views_ui/admin.inc
Create the URL for one of our standard AJAX forms based upon known information about the form.
ViewUI::buildFormState in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Build up a $form_state object suitable for use with drupal_build_form based on known information about a form.
ViewUI::buildIdentifier in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Build a form identifier that we can use to see if one form is the same as another. Since the arguments differ slightly we do a lot of spiffy concatenation here.

File

drupal/core/modules/views/views_ui/admin.inc, line 479
Provides the Views' administrative interface.

Code

function views_ui_ajax_forms($key = NULL) {
  $forms = array(
    'display' => array(
      'form_id' => 'views_ui_edit_display_form',
      'args' => array(
        'section',
      ),
    ),
    'remove-display' => array(
      'form_id' => 'views_ui_remove_display_form',
      'args' => array(),
    ),
    'rearrange' => array(
      'form_id' => 'views_ui_rearrange_form',
      'args' => array(
        'type',
      ),
    ),
    'rearrange-filter' => array(
      'form_id' => 'views_ui_rearrange_filter_form',
      'args' => array(
        'type',
      ),
    ),
    'reorder-displays' => array(
      'form_id' => 'views_ui_reorder_displays_form',
      'args' => array(),
      'callback' => 'buildDisplaysReorderForm',
    ),
    'add-item' => array(
      'form_id' => 'views_ui_add_item_form',
      'args' => array(
        'type',
      ),
    ),
    'config-item' => array(
      'form_id' => 'views_ui_config_item_form',
      'args' => array(
        'type',
        'id',
      ),
    ),
    'config-item-extra' => array(
      'form_id' => 'views_ui_config_item_extra_form',
      'args' => array(
        'type',
        'id',
      ),
    ),
    'config-item-group' => array(
      'form_id' => 'views_ui_config_item_group_form',
      'args' => array(
        'type',
        'id',
      ),
    ),
    'edit-details' => array(
      'form_id' => 'views_ui_edit_details_form',
      'args' => array(),
    ),
    'analyze' => array(
      'form_id' => 'views_ui_analyze_view_form',
      'args' => array(),
    ),
  );
  if ($key) {
    return !empty($forms[$key]) ? $forms[$key] : NULL;
  }
  return $forms;
}