diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-26 14:43:31 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-26 14:43:31 +0000 |
commit | 908618960b831fa153d3a2a6de8ab30fc7f4430b (patch) | |
tree | c9f575e9f48b0962d98f8438ce636d9a83451150 /modules/tag/helpers | |
parent | 7e5e70548b52462a2f91f3a06cadde7198ea8f6e (diff) |
Since organize is now in the preview stage and will probably be
rewritten by beta2, pull all of its "tenticles" back into itself and
out of core or tags module.
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r-- | modules/tag/helpers/tag.php | 23 | ||||
-rw-r--r-- | modules/tag/helpers/tag_event.php | 5 |
2 files changed, 0 insertions, 28 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index 50c4b41a..0ca02b42 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -104,27 +104,4 @@ class tag_Core { $group->submit("")->value(t("Delete Tag")); return $form; } - - static function get_organize_form($itemids) { - $tagPane = new Forge("tags/__FUNCTION__", "", "post", - array("id" => "gEditTags", "ref" => "organize")); - $tagPane->hidden("item")->value(implode("|", $itemids)); - $item_count = count($itemids); - $ids = implode(", ", $itemids); - $tags = Database::instance()->query( - "SELECT t.name, COUNT(it.item_id) as count - FROM {items_tags} it, {tags} t - WHERE it.tag_id = t.id - AND it.item_id in($ids) - GROUP BY it.tag_id - ORDER BY t.name ASC"); - $taglist = array(); - foreach ($tags as $tag) { - $taglist[] = $tag->name . ($item_count > $tag->count ? "*" : ""); - } - $taglist = implode("; ", $taglist); - $tagPane->textarea("tags")->label(t("Tags"))->value($taglist); - - return $tagPane; - } }
\ No newline at end of file diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php index 2a08cb6d..735422b5 100644 --- a/modules/tag/helpers/tag_event.php +++ b/modules/tag/helpers/tag_event.php @@ -59,9 +59,4 @@ class tag_event_Core { "SELECT `tag_id` from {items_tags} WHERE `item_id` = $item->id)"); $db->delete("items_tags", array("item_id" => "$item->id")); } - - static function organize_form_creation($event_parms) { - $event_parms->panes[] = array("label" => t("Manage Tags"), - "content" => tag::get_organize_form($event_parms->itemids)); - } } |