You are here

function domain_unserialize in Domain Access 7.3

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

Unserialize an object stored in {domain_*} tables.

PostgreSQL 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

4 calls to domain_unserialize()
domain_conf_data_get in domain_conf/domain_conf.module
CRUD utility to retreve domain configuratin data.
domain_theme_prepare_export in domain_theme/domain_theme.features.inc
Prepares theme data as an export array.
domain_theme_settings_submit in domain_theme/domain_theme.admin.inc
Process domain_theme_settings form submissions.
domain_theme_set_variables in domain_theme/domain_theme.module
Set the stored variables for a domain.

File

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

Code

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