function domain_unserialize in Domain Access 6.2
Same name and namespace in other branches
- 7.3 domain.module \domain_unserialize()
- 7.2 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.
Parameters
$object: The serialized object.
Return value
$data Properly unserialized data or an empty string if the $object contained no data.
See also
12 calls to domain_unserialize()
- domain_batch_form in ./
domain.admin.inc - Generate the form data for a batch update.
- domain_batch_form_submit in ./
domain.admin.inc - FormsAPI for saving batch form actions.
- 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().
File
- ./
domain.module, line 154 - Core module functions for the Domain Access suite.
Code
function domain_unserialize($object) {
if (empty($object)) {
return;
}
return unserialize(db_decode_blob($object));
}