From 0b3724c9b87f891b48c41ad61c1caf3486cc0799 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 13 Feb 2011 23:10:18 +0000 Subject: updates externalpages to 1.8 git-svn-id: http://code.elgg.org/elgg/trunk@8209 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/externalpages/actions/edit.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mod/externalpages/actions/edit.php (limited to 'mod/externalpages/actions/edit.php') diff --git a/mod/externalpages/actions/edit.php b/mod/externalpages/actions/edit.php new file mode 100644 index 000000000..edfffe168 --- /dev/null +++ b/mod/externalpages/actions/edit.php @@ -0,0 +1,25 @@ +subtype = $type; +$expages->owner_guid = get_loggedin_userid(); +$expages->access_id = ACCESS_PUBLIC; +$expages->title = $type; +$expages->description = $contents; +if (!$expages->save()) { + register_error(elgg_echo("expages:error")); + forward(REFERER); +} + +system_message(elgg_echo("expages:posted")); +forward(REFERER); -- cgit v1.2.3