Index: includes/export.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ctools/includes/export.inc,v retrieving revision 1.31 diff -u -p -r1.31 export.inc --- includes/export.inc 31 Dec 2010 23:50:25 -0000 1.31 +++ includes/export.inc 14 Feb 2011 23:00:23 -0000 @@ -387,7 +387,6 @@ function ctools_export_load_object($tabl } // @todo Load subrecords. - if ($defaults = _ctools_export_get_defaults($table, $export)) { foreach ($defaults as $object) { @@ -525,7 +524,6 @@ function _ctools_export_get_defaults($ta if (!isset($cache[$table])) { $cache[$table] = array(); - if ($export['default hook']) { if (!empty($export['api'])) { ctools_include('plugins'); @@ -708,7 +706,7 @@ function ctools_export_object($table, $o // Note: This is the *field* export callback, not the table one! if (!empty($info['export callback']) && function_exists($info['export callback'])) { - $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . $info['export callback']($object, $field, $value, $indent) . ";\n"; + $output .= $indent . '$' . $identifier . '->' . $field . ' = ' . $info['export callback']($object, $field, $object->$field, $indent) . ";\n"; } else { $value = $object->$field;