diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 10:49:18 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-10 10:49:18 +0000 |
commit | ae0d8fe986218116baba7fe0e20b26789bbe5e24 (patch) | |
tree | 8f527e8d72bd811661bab3570ccdfcbe04c2a3c9 /engine/lib | |
parent | 76abeb49eb60bdecc39e8298da26f5941f0e9daf (diff) | |
download | elgg-ae0d8fe986218116baba7fe0e20b26789bbe5e24.tar.gz elgg-ae0d8fe986218116baba7fe0e20b26789bbe5e24.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Remove site metadata
git-svn-id: https://code.elgg.org/elgg/trunk@129 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/sites.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index 32f320f59..db234c151 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -419,8 +419,15 @@ */ function remove_site_metadata($site_id, $name) { - // TODO : Writeme - throw new NotImplementedException("Writeme!"); + $result = get_metadatas($site_id, 'site', $name); + + if ($result) + { + foreach ($result as $r) + delete_metadata($r->id); + } + + return false; } /** |