You are here

function panels_node_save in Panels 5.2

Save a panel node.

While panels_node_update() is run when a panel node is edited, this function must be run to update the enhanced panel node configuration, f.e. contexts, which are not edited on the regular node edit page.

See also

panels_node_update(), panels_node_context_form_submit()

1 call to panels_node_save()
panels_node_context_form_submit in panels_node/panels_node.module
Process submission of the panel node edit form.

File

panels_node/panels_node.module, line 335
panels_node.module

Code

function panels_node_save($panel_node) {
  db_query("UPDATE {panels_node} SET contexts = '%s', relationships = '%s' WHERE nid = %d", serialize($panel_node->contexts), serialize($panel_node->relationships), $panel_node->nid);
}