Commit 4156d29b authored by Dries's avatar Dries
Browse files

- Patch #1688492 by sun: remove drupal_unpack(); it is no longer used.

parent b5b88e0b
......@@ -1392,25 +1392,6 @@ function bootstrap_hooks() {
return array('boot', 'exit', 'watchdog', 'language_init');
}
/**
* Unserializes and appends elements from a serialized string.
*
* @param $obj
* The object to which the elements are appended.
* @param $field
* The attribute of $obj whose value should be unserialized.
*/
function drupal_unpack($obj, $field = 'data') {
if ($obj->$field && $data = unserialize($obj->$field)) {
foreach ($data as $key => $value) {
if (!empty($key) && !isset($obj->$key)) {
$obj->$key = $value;
}
}
}
return $obj;
}
/**
* Translates a string to the current language or to a given language.
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment