function google_tag_object_factory in GoogleTagManager 7.2
Callback: object factory for ctools_export_load_object().
See 'export' items in google_tag_schema().
Return value
object The unpacked object with the $export['key'] property being the actual machine name not the name column in the export table.
1 string reference to 'google_tag_object_factory'
- google_tag_schema in ./
google_tag.install - Implements hook_schema().
File
- ./
google_tag.module, line 229 - Provides primary Drupal hook implementations.
Code
function google_tag_object_factory($schema, $item) {
$container = (object) unserialize($item->data);
return $container;
}