You are here

function ctools_export_unpack_object in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 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 from the database.

File

includes/export.inc, line 858
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']);
}