You are here

function domain_unserialize in Domain Access 7.2

Same name and namespace in other branches
  1. 6.2 domain.module \domain_unserialize()
  2. 7.3 domain.module \domain_unserialize()

Unserialize an object stored in {domain_*} tables.

PostGRES has issues with bytea fields, and while this is handled cleanly in cache_get(), we have our own functions for retrieving similar data objects. So we must be sure to unserialize these safely.

This may have been fixed in Drupal 7.

Parameters

$object: The serialized object.

Return value

$data Properly unserialized data or an empty string if the $object contained no data.

See also

http://drupal.org/node/686146

11 calls to domain_unserialize()
domain_batch_form in ./domain.admin.inc
Generate the form data for a batch update.
domain_conf_domain_bootstrap_full in domain_conf/domain_conf.module
Implements hook_domain_bootstrap_full().
domain_conf_form in domain_conf/domain_conf.admin.inc
Custom form to generate domain-specific site settings.
domain_conf_form_submit in domain_conf/domain_conf.admin.inc
FormsAPI for domain_conf_form().
domain_conf_variable_delete in domain_conf/domain_conf.module
Delete a setting from {domain_conf}.

... See full list

File

./domain.module, line 163
Core module functions for the Domain Access suite.

Code

function domain_unserialize($object) {
  if (empty($object)) {
    return;
  }
  return unserialize($object);
}