You are here

function panels_views_edit_view_form_submit in Panels 5.2

Submit the edit form and save the values.

File

panels_views/panels_views.module, line 541
panels_views.module

Code

function panels_views_edit_view_form_submit($form_id, $form_values) {
  $form_values['contexts'] = isset($form_values['contexts']) ? $form_values['contexts'] : array();
  $pv = new stdClass();
  foreach (array_keys(panels_views_pane_fields()) as $field) {
    $pv->{$field} = $form_values[$field];
  }
  panels_views_save($pv);
  drupal_set_message(t("The panel view has been saved."));
  return 'admin/panels/views';
}