You are here

function views_ui_build_form_url in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 views_ui/admin.inc \views_ui_build_form_url()
  2. 6.2 includes/admin.inc \views_ui_build_form_url()
  3. 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

includes/admin.inc, line 1692
admin.inc Provides the Views' administrative interface.

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;
}