function views_ui_ajax_forms
Same name in other branches
- 7.x-3.x includes/admin.inc \views_ui_ajax_forms()
4 calls to views_ui_ajax_forms()
- views_ui_ajax_form in includes/
admin.inc - Generic entry point to handle forms.
- views_ui_build_form_state in includes/
admin.inc - Build up a $form_state object suitable for use with drupal_build_form based on known information about a form.
- views_ui_build_form_url in includes/
admin.inc - Create the URL for one of our standard AJAX forms based upon known information about the form.
- views_ui_build_identifier in includes/
admin.inc - 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 concenation here.
File
-
includes/
admin.inc, line 1592
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(),
),
'config-type' => array(
'form_id' => 'views_ui_config_type_form',
'args' => array(
'type',
),
),
'rearrange' => array(
'form_id' => 'views_ui_rearrange_form',
'args' => array(
'type',
),
),
'rearrange-filter' => array(
'form_id' => 'views_ui_rearrange_filter_form',
'args' => array(
'type',
),
),
'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-group' => array(
'form_id' => 'views_ui_config_item_group_form',
'args' => array(
'type',
'id',
),
),
'config-item-extra' => array(
'form_id' => 'views_ui_config_item_extra_form',
'args' => array(
'type',
'id',
),
),
'change-style' => array(
'form_id' => 'views_ui_change_style_form',
'args' => array(
'type',
'id',
),
),
'config-style' => array(
'form_id' => 'views_ui_config_style_form',
'args' => array(
'type',
'id',
),
),
);
if ($key) {
return !empty($forms[$key]) ? $forms[$key] : NULL;
}
return $forms;
}