You are here

function panels_node_context_form_submit in Panels 5.2

Process submission of the panel node edit form.

File

panels_node/panels_node.module, line 458
panels_node.module

Code

function panels_node_context_form_submit($form_id, $form_values) {
  $panel_node = $form_values['panel_node'];

  // Organize these from the common form.
  panels_common_save_context('context', $panel_node->contexts, $form_values);
  panels_common_save_context('relationship', $panel_node->relationships, $form_values);
  drupal_set_message(t('Your changes have been saved.'));
  panels_node_save($panel_node);
  panels_common_cache_clear('panel_object:panel_node', $panel_node->did);
}