diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-03-29 13:06:44 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-03-29 13:06:44 -0700 |
commit | 7d66ab2e949bc915f108737f08cac2f9057ef729 (patch) | |
tree | 682970fdbb6d8eb1116695ad49cdfb62abd5e74f /modules/comment/controllers | |
parent | 60286bfba3939974088dcdc8935525f571eaa0eb (diff) |
Improve comment RSS feed visibility, initially added by Thomas E. Horner in
fc942aacda07346fa9af04853659eaeac1e766d3.
Change some variable names, refactor out visibility checking code, actually
check visibility at generation time instead of just suppressing the UI,
update module.info
Fixes #1829.
Diffstat (limited to 'modules/comment/controllers')
-rw-r--r-- | modules/comment/controllers/admin_comments.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/comment/controllers/admin_comments.php b/modules/comment/controllers/admin_comments.php index 684ce15d..bcd6a939 100644 --- a/modules/comment/controllers/admin_comments.php +++ b/modules/comment/controllers/admin_comments.php @@ -47,13 +47,12 @@ class Admin_Comments_Controller extends Admin_Controller { ->options(array("everybody" => t("Everybody"), "registered_users" => t("Only registered users"))) ->selected(module::get_var("comment", "access_permissions")); - $comment_settings->dropdown("rss_available") - ->label(t("Which RSS feeds should be available?")) - ->options(array("both" => t("Both"), - "newest" => t("Only All new comments"), - "onitem" => t("Only Comments on item"), - "none" => t("None"))) - ->selected(module::get_var("comment", "rss_available")); + $comment_settings->dropdown("rss_visible") + ->label(t("Which RSS feeds can users see?")) + ->options(array("all" => t("All comment feeds"), + "newest" => t("New comments feed only"), + "per_item" => t("Comments on photos, movies and albums only"))) + ->selected(module::get_var("comment", "rss_visible")); $comment_settings->submit("save")->value(t("Save")); return $form; } |