diff options
Diffstat (limited to 'views/json/export/metadata.php')
-rw-r--r-- | views/json/export/metadata.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/views/json/export/metadata.php b/views/json/export/metadata.php new file mode 100644 index 000000000..30caf8b85 --- /dev/null +++ b/views/json/export/metadata.php @@ -0,0 +1,22 @@ +<?php + /** + * Elgg metadata export. + * Displays a metadata item using json + * + * @package Elgg + * @subpackage Core + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Marcus Povey + * @copyright Curverider Ltd 2008 + * @link http://elgg.org/ + */ + + $m = $vars['metadata']; + + $export = new stdClass; + + foreach ($m as $k => $v) + $export->$k = $v; + + echo json_encode($export); +?>
\ No newline at end of file |