function views_ui_build_form_url in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views_ui/admin.inc \views_ui_build_form_url()
- 6.3 includes/admin.inc \views_ui_build_form_url()
- 7.3 includes/admin.inc \views_ui_build_form_url()
Create the URL for one of our standard AJAX forms based upon known information about the form.
1 call to views_ui_build_form_url()
- views_ui_ajax_form in includes/
admin.inc - Generic entry point to handle forms.
File
Code
function views_ui_build_form_url($form_state) {
$form = views_ui_ajax_forms($form_state['form_key']);
$ajax = empty($form_state['ajax']) ? 'nojs' : 'ajax';
$name = $form_state['view']->name;
$url = "admin/build/views/{$ajax}/{$form_state['form_key']}/{$name}/{$form_state['display_id']}";
foreach ($form['args'] as $arg) {
$url .= '/' . $form_state[$arg];
}
return $url;
}