function panels_page_admin_view_submit in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_page/panels_page.admin.inc \panels_page_admin_view_submit()
File
- panels_page/
panels_page.admin.inc, line 956 - panels_page.admin.inc
Code
function panels_page_admin_view_submit($form_id, $form_values) {
$count = 0;
$url = "admin/panels/panel-page/" . $form_values['panel_page']->name . "/preview";
foreach ($form_values['contexts'] as $context) {
$url .= "/" . $form_values["arg{$count}"];
$count++;
}
if (!empty($form_values['additional'])) {
$url .= "/" . $form_values['additional'];
}
return $url;
}