diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 03:25:25 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 03:25:25 +0000 |
commit | d4e4268d11612408e4989a5c57f69fcb2febe8aa (patch) | |
tree | 2b3b041a5f4e17bea674a44f07c3df5c7f3811dd /mod/bookmarks/actions/edit.php | |
parent | b232f52a5273a44e28de239cbacc1e4e4b8cc8b3 (diff) | |
download | elgg-d4e4268d11612408e4989a5c57f69fcb2febe8aa.tar.gz elgg-d4e4268d11612408e4989a5c57f69fcb2febe8aa.tar.bz2 |
Refs #2680: First pass at porting the 1.7 bookmarks to 1.8. Functional, but code is still messy.
git-svn-id: http://code.elgg.org/elgg/trunk@7998 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/actions/edit.php')
-rwxr-xr-x | mod/bookmarks/actions/edit.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mod/bookmarks/actions/edit.php b/mod/bookmarks/actions/edit.php deleted file mode 100755 index 87de1c5e2..000000000 --- a/mod/bookmarks/actions/edit.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * Elgg bookmarks edit action - * - */ - -//set some required variables -$guid = get_input('guid'); -$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); - -// Make sure we actually have permission to edit -$bookmark = get_entity($guid); -if ($bookmark->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 |