You are here

function _panels_page_save_value in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_page/panels_page.admin.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.write.inc
Insert a new panel page into the database.
_panels_page_update in panels_page/panels_page.write.inc
Save an existing panel page to the database.

File

panels_page/panels_page.write.inc, line 135
panels_page.write.inc

Code

function _panels_page_save_value($info, $value) {
  $storage_type = isset($info['storage_type']) ? $info['storage_type'] : 'normal';
  switch ($storage_type) {
    case 'serialize':
      return serialize($value);
    case 'implode':
      return implode(', ', (array) $value);
    default:
      return $value;
  }
}