aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-12 16:26:19 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-12 16:26:19 +0000
commit555c4065732ec8a5795943cb4ae3a61e675825ec (patch)
treeb2c3bfed3e5f3e284a4358a8664d812dbf2df745 /actions/widgets
parentb9668e7755955bd986874275d750a5f00ab9751e (diff)
downloadelgg-555c4065732ec8a5795943cb4ae3a61e675825ec.tar.gz
elgg-555c4065732ec8a5795943cb4ae3a61e675825ec.tar.bz2
Widget API changes, as well as edit and action infrastructure
git-svn-id: https://code.elgg.org/elgg/trunk@896 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets')
-rw-r--r--actions/widgets/save.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php
new file mode 100644
index 000000000..b50010e6f
--- /dev/null
+++ b/actions/widgets/save.php
@@ -0,0 +1,34 @@
+<?php
+
+ /**
+ * Elgg widget save action
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $guid = get_input('guid');
+ $params = get_input('params');
+ $pageurl = get_input('pageurl');
+
+ $result = false;
+
+ if (!empty($guid)) {
+
+ $result = save_widget_info($guid,$params);
+
+ }
+
+ if ($result) {
+ system_message('widgets:save:success');
+ } else {
+ system_message('widgets:save:failure');
+ }
+
+ forward($_SERVER['HTTP_REFERER']);
+
+?> \ No newline at end of file