function 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()
views_handler_field_field::options_form in modules/field/views_handler_field_field.inc
Default options form provides the label widget that all fields should have.
views_ui_ajax_form in includes/admin.inc
Generic entry point to handle forms.

File

includes/admin.inc, line 2993

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