diff options
Diffstat (limited to 'actions/import')
-rw-r--r-- | actions/import/opendd.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/actions/import/opendd.php b/actions/import/opendd.php new file mode 100644 index 000000000..e63607145 --- /dev/null +++ b/actions/import/opendd.php @@ -0,0 +1,22 @@ +<?php +/** + * Elgg OpenDD import action. + * + * This action accepts data to import (in OpenDD format) and performs and import. It accepts + * data as $data. + * + * @package Elgg + * @subpackage Core + */ + +$data = get_input('data', '', false); + +$return = import($data); + +if ($return) { + system_message(elgg_echo('importsuccess')); +} else { + register_error(elgg_echo('importfail')); +} + +forward(REFERER); |