You are here

function views_ui_reorder_view in Views (for Drupal 7) 6.3

Page callback to display analysis information on a view.

1 string reference to 'views_ui_reorder_view'
views_ui_menu in ./views_ui.module

File

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

Code

function views_ui_reorder_view($js, $view) {
  views_include('ajax');
  $form_state = array(
    'view' => &$view,
    'ajax' => $js,
  );
  $output = views_ajax_form_wrapper('views_ui_reorder_displays_form', $form_state);
  if ($js) {
    if (empty($output)) {

      // I don't want preprocess to modify the views -> no references
      $vars = array(
        'view' => $view,
      );
      template_preprocess_views_ui_edit_view($vars);
      $output = new stdClass();
      $output->replace['.views-tabset'] = $vars['tabs'];

      // Not the right place to have html i know !
      $output->replace['.views-quick-links'] = '<div class="views-quick-links">' . $vars['quick_links'] . '</div>';

      // Doesn't work yet, maybe we should reload the page dunno

      //return views_ui_regenerate_tabs($view);
    }
    return views_ajax_render($output);
  }
  return $output;
}