diff options
Diffstat (limited to 'views/json/export/entity.php')
-rw-r--r-- | views/json/export/entity.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/views/json/export/entity.php b/views/json/export/entity.php index 3b0ce8367..c5369eea1 100644 --- a/views/json/export/entity.php +++ b/views/json/export/entity.php @@ -11,13 +11,16 @@ * @link http://elgg.org/ */ - $entity = $vars['entity']; + $entity = $vars['entity'];
$export = new stdClass; $exportable_values = $entity->getExportableValues(); foreach ($exportable_values as $v) - $export->$v = $entity->$v; - - echo json_encode($export); + $export->$v = $entity->$v;
+
+ $export->url = $entity->getURL(); +
+ global $jsonexport; + $jsonexport[$entity->getType()][$entity->getSubtype()][] = $export; ?>
\ No newline at end of file |