diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-14 10:02:33 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-14 10:02:33 +0000 |
commit | ba96de15a07753e06f02b777d1cfcb0c981d2986 (patch) | |
tree | 31446d9c1be99ab43b2fd8080ab3dc9ac08678cd /mod/guidbrowser/index.php | |
parent | 9b312e76c67595c3ea24cb3056f386027c1a492a (diff) | |
download | elgg-ba96de15a07753e06f02b777d1cfcb0c981d2986.tar.gz elgg-ba96de15a07753e06f02b777d1cfcb0c981d2986.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Relationships added to GUID browser
git-svn-id: https://code.elgg.org/elgg/trunk@441 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidbrowser/index.php')
-rw-r--r-- | mod/guidbrowser/index.php | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/mod/guidbrowser/index.php b/mod/guidbrowser/index.php index 5b0a8c09d..d842367a5 100644 --- a/mod/guidbrowser/index.php +++ b/mod/guidbrowser/index.php @@ -24,20 +24,26 @@ $key = get_input('key'); $value = get_input('value'); - echo "ACTION $callaction"; + $relationship = get_input('relationship'); + $guid2 = get_input('guid2'); switch ($callaction) { - case 'metadata' : echo "META"; + case 'metadata' : if (!create_metadata($eguid, $key, $value)) - echo "Could not create metadata with $guid:$key:$value"; + echo "Could not create metadata with $eguid:$key:$value"; break; - case 'annotations' : echo "ANNO"; + case 'annotations' : if (!create_annotation($eguid, $key, $value)) - echo "Could not create metadata with $guid:$key:$value"; - break; + echo "Could not create metadata with $eguid:$key:$value"; + break; + + case 'relationship' : + if (!add_entity_relationship($eguid, $relationship, $guid2)) + echo "Could not create relationship between $eguid:$relationship:$guid2"; + break; } // Get the current page's owner |