diff options
Diffstat (limited to 'mod/bookmarks/actions/add.php')
| -rw-r--r-- | mod/bookmarks/actions/add.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mod/bookmarks/actions/add.php b/mod/bookmarks/actions/add.php deleted file mode 100644 index be2f79f82..000000000 --- a/mod/bookmarks/actions/add.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** - * Elgg bookmarks add/save action - * - * @package ElggBookmarks - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider <info@elgg.com> - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.org/ - */ - -gatekeeper(); -action_gatekeeper(); -//set some required variables -$title = get_input('title'); -$address = get_input('address'); -$notes = get_input('notes'); -$access = get_input('access'); -$tags = get_input('tags'); -$tagarray = string_to_tag_array($tags); -//create a new bookmark object -$entity = new ElggObject; -$entity->subtype = "bookmarks"; -$entity->owner_guid = get_loggedin_user()->getGUID(); -$entity->container_guid = (int)get_input('container_guid', get_loggedin_user()->getGUID()); -$entity->title = $title; -$entity->description = $notes; -$entity->address = $address; -$entity->access_id = $access; -$entity->link_version = create_wire_url_code();//returns a random code in the form {{L:1hp56}} -$entity->tags = $tagarray; - -if ($entity->save()) { - system_message(elgg_echo('bookmarks:save:success')); - //add to river - add_to_river('river/object/bookmarks/create','create',$_SESSION['user']->guid,$entity->guid); -} else { - register_error(elgg_echo('bookmarks:save:failed')); -} -$account = get_entity((int)get_input('container_guid', get_loggedin_user()->getGUID())); -forward("pg/bookmarks/" . $account->username);
\ No newline at end of file |
