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/reference.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 mod/bookmarks/actions/reference.php (limited to 'mod/bookmarks/actions/reference.php') diff --git a/mod/bookmarks/actions/reference.php b/mod/bookmarks/actions/reference.php new file mode 100755 index 000000000..ae79b78cd --- /dev/null +++ b/mod/bookmarks/actions/reference.php @@ -0,0 +1,34 @@ +canEdit()){ + //create a relationship between the object and bookmark + if(add_entity_relationship($object_guid, "reference", $bookmark_guid)){ + // Success message + system_message(elgg_echo("bookmarks:referenceadded")); + }else{ + // Failure message + system_message(elgg_echo("bookmarks:referenceerror")); + } + }else{ + // Failure message + system_message(elgg_echo("bookmarks:referenceerror")); + } +}else{ + // Failure message + system_message(elgg_echo("bookmarks:referenceerror")); +} + +forward($object->getURL()); \ No newline at end of file -- cgit v1.2.3