Change plugins to no longer need magic function. Can now use $plugin = array(...) instead.
#651852 by coreyp_1: Add caching to content subtypes to save some queries. This means developers will need to clear caches when changing content type code.
#630982 by Roi Danton: Dependent javascript failed to work properly if radios being depended on had no value at all.
+#661332 by yhahn: Allow export.inc to export stdClass objects by exporting them as an array and casting them to an object.
ctools 6.x-1.x-dev
==================
$output .= ')';
}
}
+ else if (is_object($var) && get_class($var) === 'stdClass') {
+ // var_export() will export stdClass objects using an undefined
+ // magic method __set_state() leaving the export broken. This
+ // workaround avoids this by casting the object as an array for
+ // export and casting it back to an object when evaluated.
+ $output .= '(object) ' . ctools_var_export((array) $var);
+ }
else if (is_bool($var)) {
$output = $var ? 'TRUE' : 'FALSE';
}