function _panels_page_save_value in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_page/panels_page.write.inc \_panels_page_save_value()
Process values for saving based upon data in the schema
2 calls to _panels_page_save_value()
- _panels_page_insert in panels_page/
panels_page.admin.inc - Insert a new panel page into the database.
- _panels_page_update in panels_page/
panels_page.admin.inc - Save an existing panel page to the database.
File
- panels_page/
panels_page.admin.inc, line 1083 - panels_page.admin.inc
Code
function _panels_page_save_value($field, $value) {
switch ($field) {
case 'arguments':
case 'displays':
case 'contexts':
case 'relationships':
case 'switcher_options':
return serialize($value);
case 'access':
return implode(', ', (array) $value);
default:
return $value;
}
}