function finder_import_objects in Finder 7
Same name and namespace in other branches
- 6 finder.module \finder_import_objects()
Recursively converts arrays back into objects.
1 call to finder_import_objects()
- finder_import in ./
finder.module - Evaluate and return decoded string.
File
- ./
finder.module, line 1468 - The finder module.
Code
function finder_import_objects($array) {
foreach ($array as $k => $v) {
if (is_array($v)) {
$array[$k] = finder_import_objects($v);
}
if (is_string($v)) {
$array[$k] = stripslashes($v);
}
}
if ($array['#_finder_object']) {
unset($array['#_finder_object']);
$array = (object) $array;
}
return $array;
}