You are here

function panels_page_admin_view_submit in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_page/panels_page.admin.inc \panels_page_admin_view_submit()

File

panels_page/panels_page.admin.inc, line 954
panels_page.admin.inc

Code

function panels_page_admin_view_submit($form, &$form_state) {
  $count = 0;
  $url = "admin/panels/panel-page/" . $form_state['panel_page']->name . '/edit/preview';
  foreach ($form_state['contexts'] as $context) {
    $url .= "/" . $form_state['values']["arg{$count}"];
    $count++;
  }
  if (!empty($form_state['values']['additional'])) {
    $url .= "/" . $form_state['values']['additional'];
  }
  $form_state['redirect'] = $url;
}