1 views_ui.admin.inc views_ui_build_form_path($form_state)

Create the menu path for one of our standard AJAX forms based upon known information about the form.

File

core/modules/views_ui/views_ui.admin.inc, line 2759
Admin page callbacks for the Views UI module.

Code

function views_ui_build_form_path($form_state) {
  $form = views_ui_ajax_forms($form_state['form_key']);
  $ajax = empty($form_state['ajax']) ? 'nojs' : 'ajax';
  $name = $form_state['view']->name;
  $path = "admin/structure/views/$ajax/$form_state[form_key]/$name/$form_state[display_id]";
  foreach ($form['args'] as $arg) {
    $path .= '/' . $form_state[$arg];
  }
  return $path;
}