diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-15 15:04:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-15 15:04:39 +0000 |
commit | e8d148970261207efbe5435e1abcf68c5ed59cc8 (patch) | |
tree | 17e3d167941f30dbb22ea4d689227e3a13c06ec2 /mod/pages/actions | |
parent | 4dc8868b80fdded7931f715b655970a858836b3d (diff) | |
download | elgg-e8d148970261207efbe5435e1abcf68c5ed59cc8.tar.gz elgg-e8d148970261207efbe5435e1abcf68c5ed59cc8.tar.bz2 |
pages plugin using new layout - still need to get subpages working and navigation
git-svn-id: http://code.elgg.org/elgg/trunk@7885 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/actions')
-rw-r--r-- | mod/pages/actions/pages/editwelcome.php | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/mod/pages/actions/pages/editwelcome.php b/mod/pages/actions/pages/editwelcome.php deleted file mode 100644 index a13ae4c35..000000000 --- a/mod/pages/actions/pages/editwelcome.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php -/** - * Elgg Pages Edit welcome message - * - * @package ElggPages - */ - -global $CONFIG; - -// Get group fields -$message = get_input("pages_welcome"); -$container_guid = get_input("owner_guid"); -$object_guid = get_input("object_guid"); -$access_id = (int) get_input("access_id"); - -//check to see if this is an edit or new welcome message -if($object_guid){ - - //it is an edit so grab the object - $welcome = get_entity($object_guid); - if ($welcome->getSubtype() == "pages_welcome" && $welcome->canEdit()) { - - $welcome->description = $message; - $welcome->access_id = $access_id; - $welcome->save(); - system_message(elgg_echo("pages:welcomeposted")); - - } else { - register_error(elgg_echo("pages:welcomeerror")); - } -} else { - //it is a new welcome object - if ($container_guid) { - $welcome = new ElggObject(); - // Tell the system it's a pages welcome message - $welcome->subtype = "pages_welcome"; - $welcome->title = "Welcome"; - $welcome->description = $message; - $welcome->access_id = $access_id; - - // Set the owner - $welcome->container_guid = $container_guid; - - // save - if (!$welcome->save()){ - register_error(elgg_echo("pages:welcomeerror")); - } else { - system_message(elgg_echo("pages:welcomeposted")); - } - } else { - register_error(elgg_echo("pages:welcomeerror")); - } -} - -forward("pg/pages/owned/" . get_entity($container_guid)->username);
\ No newline at end of file |