summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-22 01:10:00 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-22 01:10:00 -0800
commita445a64bcbfc5df45f255e02d3295156e199832d (patch)
tree2fe12833f3e00cc210b016588a80fd0daa845d7d /modules/tag/helpers
parentca909a49ae16dc1d5a0d8448f84c32c7900ba06e (diff)
Return the url of the newly created item from post().
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag_rest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/tag/helpers/tag_rest.php b/modules/tag/helpers/tag_rest.php
index d68cb73d..5feeb756 100644
--- a/modules/tag/helpers/tag_rest.php
+++ b/modules/tag/helpers/tag_rest.php
@@ -44,6 +44,7 @@ class tag_rest_Core {
access::required("edit", $item);
tag::add($item, $tag->name);
+ return array("url" => rest::url("tag_item", $tag, $item));
}
static function put($request) {