From 0320936f29dd83534b5af386a981131be7981a9a Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Mar 2010 23:15:07 +0000 Subject: Updated bookmarks with new interface. git-svn-id: http://code.elgg.org/elgg/trunk@5266 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/actions/edit.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 mod/bookmarks/actions/edit.php (limited to 'mod/bookmarks/actions/edit.php') diff --git a/mod/bookmarks/actions/edit.php b/mod/bookmarks/actions/edit.php new file mode 100755 index 000000000..16e324154 --- /dev/null +++ b/mod/bookmarks/actions/edit.php @@ -0,0 +1,35 @@ +getSubtype() == "bookmarks" && $bookmark->canEdit()) { + $bookmark->title = $title; + $bookmark->description = $notes; + $bookmark->address = $address; + $bookmark->access_id = $access; + $bookmark->tags = $tagarray; + if ($bookmark->save()) { + system_message(elgg_echo('bookmarks:edit:success')); + } else { + system_message(elgg_echo('bookmarks:edit:fail')); + } +}else{ + system_message(elgg_echo('bookmarks:edit:fail')); +} +$account = get_entity($bookmark->container_guid); +forward("pg/bookmarks/" . $account->username); \ No newline at end of file -- cgit v1.2.3