function backup_migrate_item::get_serialized_fields

nittany7 crud.inc backup_migrate_item::get_serialized_fields()
mooc7 crud.inc backup_migrate_item::get_serialized_fields()

Return the fields which must be serialized before saving to the db.

File

modules/contrib/backup_migrate/includes/crud.inc, line 336
CRUD functions for backup and migrate types (schedules, profiles etc.).

Class

backup_migrate_item
A base class for items which can be stored in the database, listed, edited, deleted etc.

Code

function get_serialized_fields() {
  $out = array();
  $schema = $this->get_schema();
  foreach ($schema['fields'] as $field => $info) {
    if (!empty($info['serialize'])) {
      $out[] = $field;
    }
  }
  return $out;
}