You are here

function views_ui_build_form_url in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.3 includes/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.

2 calls to views_ui_build_form_url()
Field::buildOptionsForm in lib/Views/field/Plugin/views/field/Field.php
Default options form that provides the label widget that all fields should have.
views_ui_ajax_form in views_ui/admin.inc
Generic entry point to handle forms.

File

views_ui/admin.inc, line 805
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']->storage->name;
  $url = "admin/structure/views/{$ajax}/{$form_state['form_key']}/{$name}/{$form_state['display_id']}";
  foreach ($form['args'] as $arg) {
    $url .= '/' . $form_state[$arg];
  }
  return $url;
}