You are here

function ctools_export_unpack_object in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/export.inc \ctools_export_unpack_object()

Unpack data loaded from the database onto an object.

Parameters

$table: The name of the table this object represents.

$data: The data as loaded by db_fetch_object().

File

includes/export.inc, line 642
Contains code to make it easier to have exportable objects.

Code

function ctools_export_unpack_object($table, $data) {
  $schema = ctools_export_get_schema($table);
  return _ctools_export_unpack_object($schema, $data, $schema['export']['object']);
}