From 4a28077f468f0a688cd70f3b43e5ffc242bcb49a Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 1 Jun 2002 21:57:29 +0000 Subject: - adding descriptions to modules (thanks Joe + Scott). - fixed comment flat list view missing 1 comment. - changed update.php around a bit. * security check isn't in effect if the db hasn't been updated. * instructions re-organized. * fixed some minor updates. - updated database.mysql done by UnConeD. - changelog update. --- modules/aggregator.module | 5 +++++ modules/aggregator/aggregator.module | 5 +++++ modules/archive.module | 5 +++++ modules/archive/archive.module | 5 +++++ modules/block.module | 5 +++++ modules/block/block.module | 5 +++++ modules/blog.module | 6 ++++++ modules/blog/blog.module | 6 ++++++ modules/bloggerapi.module | 5 +++++ modules/book.module | 5 +++++ modules/book/book.module | 5 +++++ modules/cloud.module | 9 +++++++-- modules/comment.module | 7 ++++++- modules/comment/comment.module | 7 ++++++- modules/drupal.module | 5 +++++ modules/drupal/drupal.module | 5 +++++ modules/forum.module | 5 +++++ modules/forum/forum.module | 5 +++++ modules/help.module | 5 +++++ modules/help/help.module | 5 +++++ modules/import.module | 5 +++++ modules/jabber.module | 6 ++++++ modules/locale.module | 5 +++++ modules/locale/locale.module | 5 +++++ modules/node.module | 5 +++++ modules/node/node.module | 5 +++++ modules/page.module | 5 +++++ modules/page/page.module | 5 +++++ modules/poll.module | 5 +++++ modules/poll/poll.module | 5 +++++ modules/queue.module | 6 +++++- modules/rating.module | 5 +++++ modules/search.module | 5 +++++ modules/search/search.module | 5 +++++ modules/statistics.module | 5 +++++ modules/statistics/statistics.module | 5 +++++ modules/story.module | 5 +++++ modules/story/story.module | 5 +++++ modules/system.module | 5 +++++ modules/system/system.module | 5 +++++ modules/taxonomy.module | 5 +++++ modules/taxonomy/taxonomy.module | 5 +++++ modules/tracker.module | 5 +++++ modules/tracker/tracker.module | 5 +++++ modules/user.module | 7 ++++++- modules/user/user.module | 7 ++++++- modules/watchdog.module | 5 +++++ modules/watchdog/watchdog.module | 5 +++++ modules/weblogs.module | 5 +++++ 49 files changed, 254 insertions(+), 7 deletions(-) (limited to 'modules') diff --git a/modules/aggregator.module b/modules/aggregator.module index 726dc08f5..0e3f3e239 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -11,6 +11,11 @@ function import_help() { 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 100 => 100); $output .= form_select("Items per block", "import_block_limit", variable_get("import_block_limit", 15), $number, "The maximum number of items displayed in one block."); diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 726dc08f5..0e3f3e239 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -11,6 +11,11 @@ function import_help() { 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 100 => 100); $output .= form_select("Items per block", "import_block_limit", variable_get("import_block_limit", 15), $number, "The maximum number of items displayed in one block."); diff --git a/modules/archive.module b/modules/archive.module index 2e3e281e1..459fe34f0 100644 --- a/modules/archive.module +++ b/modules/archive.module @@ -1,6 +1,11 @@ "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal blog entry should consist of. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts.")); diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 7d4f4a206..223610a32 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -1,6 +1,12 @@ "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal blog entry should consist of. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts.")); diff --git a/modules/bloggerapi.module b/modules/bloggerapi.module index 404105683..49e0b4bf8 100644 --- a/modules/bloggerapi.module +++ b/modules/bloggerapi.module @@ -368,6 +368,11 @@ function bloggerapi_perm() { return array("access bloggerapi"); } +function bloggerapi_system($field){ + $system["description"] = t("Allows users post to Drupal via alternate methods or different tools."); + return $system[$field]; +} + function bloggerapi_help() { ?>

Introduction

diff --git a/modules/book.module b/modules/book.module index f6dab9d06..8f02ce4ee 100644 --- a/modules/book.module +++ b/modules/book.module @@ -1,6 +1,11 @@ $site["threshold"]) { + if (abs($site["size"] - strlen($data)) >= $site["threshold"]) { db_query("UPDATE site SET size = '". strlen($data) ."', timestamp = '". time() ."' WHERE link = '%s'", $site["link"]); } @@ -78,7 +83,7 @@ function cloud_update($site) { function cloud_form($edit = array()) { $period = array(900 => format_interval(900), 1800 => format_interval(1800), 3600 => format_interval(3600), 7200 => format_interval(7200), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 64800 => format_interval(64800), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200)); - $threshold = array(0 => "0 bytes", 10 => "10 bytes", 20 => "20 bytes", 40 => "40 bytes", 60 => "60 bytes", 80 => "80 bytes", 160 => "160 bytes", 320 => "320 bytes", 640 => "640 bytes"); + $threshold = array(1 => "1 byte", 10 => "10 bytes", 20 => "20 bytes", 40 => "40 bytes", 60 => "60 bytes", 80 => "80 bytes", 100 => "100 bytes", 120 => "120 bytes", 140 => "140 bytes", 160 => "160 bytes", 320 => "320 bytes", 640 => "640 bytes"); $form .= form_textfield("Site name", "name", $edit["name"], 50, 128, "The name of the website you want to monitor for updates."); $form .= form_textfield("Site URL", "link", $edit["link"], 50, 255, "The URL of the website you want to monitor for updates."); diff --git a/modules/comment.module b/modules/comment.module index 0f11bec1d..509341ede 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -13,6 +13,11 @@ function comment_help() { return $output; } +function comment_system($field){ + $system["description"] = t("Enables user commenting."); + return $system[$field]; +} + function comment_settings($mode, $order, $threshold) { global $user; @@ -516,7 +521,7 @@ function comment_render($nid, $cid = 0) { } if ($mode == 1) { - if (db_result($result)) { + if (db_num_rows($result)) { print "\n"; print " \n"; while ($comment = db_fetch_object($result)) { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 0f11bec1d..509341ede 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -13,6 +13,11 @@ function comment_help() { return $output; } +function comment_system($field){ + $system["description"] = t("Enables user commenting."); + return $system[$field]; +} + function comment_settings($mode, $order, $threshold) { global $user; @@ -516,7 +521,7 @@ function comment_render($nid, $cid = 0) { } if ($mode == 1) { - if (db_result($result)) { + if (db_num_rows($result)) { print "
". t("Subject") ."". t("Author") ."". t("Date") ."
\n"; print " \n"; while ($comment = db_fetch_object($result)) { diff --git a/modules/drupal.module b/modules/drupal.module index 0a1cb8639..6468076eb 100644 --- a/modules/drupal.module +++ b/modules/drupal.module @@ -1,5 +1,10 @@ "help")); diff --git a/modules/help/help.module b/modules/help/help.module index 4f11236f1..423ac662c 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -1,6 +1,11 @@ "help")); diff --git a/modules/import.module b/modules/import.module index 726dc08f5..0e3f3e239 100644 --- a/modules/import.module +++ b/modules/import.module @@ -11,6 +11,11 @@ function import_help() { 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 100 => 100); $output .= form_select("Items per block", "import_block_limit", variable_get("import_block_limit", 15), $number, "The maximum number of items displayed in one block."); diff --git a/modules/jabber.module b/modules/jabber.module index 98ddd7480..abe1a4448 100644 --- a/modules/jabber.module +++ b/modules/jabber.module @@ -1,4 +1,10 @@ status; diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 8238ea0bc..ab7792e18 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -1,6 +1,11 @@ status; diff --git a/modules/queue.module b/modules/queue.module index 833a7c442..744b83ddc 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -1,8 +1,12 @@ 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 60 => 60, 70 => 70, 80 => 80, 90 => 90, 100 => 100); $threshold_dump = array(-1 => -1, -2 => -2, -3 => -3, -4 => -4, -5 => -5, -6 => -6, -7 => -7, -8 => -8, -9 => -9, -10 => -10, -11 => -11, -12 => -12, -13 => -13, -14 => -14, -15 => -15, -20 => -20, -25 => -25, -30 => -30); $threshold_expire = array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 60 => 60, 70 => 70, 80 => 80, 90 => 90, 100 => 100); diff --git a/modules/rating.module b/modules/rating.module index 07acab3ec..4f8fe48be 100644 --- a/modules/rating.module +++ b/modules/rating.module @@ -8,6 +8,11 @@ function rating_help() { return $output; } +function rating_system($field){ + $system["description"] = t("Enables ranking of users based on the rating of their submissions."); + return $system[$field]; +} + function rating_perm() { return array("access user ratings"); } diff --git a/modules/search.module b/modules/search.module index b441b096a..7ecbf677f 100644 --- a/modules/search.module +++ b/modules/search.module @@ -14,6 +14,11 @@ function search_help() { return $output; } +function search_system($field){ + $system["description"] = t("Enables site wide key word searching"); + return $system[$field]; +} + /** * Return an array of valid search access permissions */ diff --git a/modules/search/search.module b/modules/search/search.module index b441b096a..7ecbf677f 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -14,6 +14,11 @@ function search_help() { return $output; } +function search_system($field){ + $system["description"] = t("Enables site wide key word searching"); + return $system[$field]; +} + /** * Return an array of valid search access permissions */ diff --git a/modules/statistics.module b/modules/statistics.module index 3b04cf3ae..c4e1d48d0 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -14,6 +14,11 @@ function statistics_help() { return $output; } +function statistics_system($field){ + $system["description"] = t("Gathers and displays site metrics."); + return $system[$field]; +} + function statistics_cron() { db_query("DELETE FROM referrer WHERE ". time() ." - timestamp > ". variable_get("referrer_clear", 604800)); } diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 3b04cf3ae..c4e1d48d0 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -14,6 +14,11 @@ function statistics_help() { return $output; } +function statistics_system($field){ + $system["description"] = t("Gathers and displays site metrics."); + return $system[$field]; +} + function statistics_cron() { db_query("DELETE FROM referrer WHERE ". time() ." - timestamp > ". variable_get("referrer_clear", 604800)); } diff --git a/modules/story.module b/modules/story.module index f4366d0cb..8742be964 100644 --- a/modules/story.module +++ b/modules/story.module @@ -7,6 +7,11 @@ function story_help() { return $output; } +function story_system($field){ + $system["description"] = t("Enables users to submit stories. These stories are not part of their blogs."); + return $system[$field]; +} + function story_conf_options() { $output .= form_textarea("Explanation or submission guidelines", "story_help", variable_get("story_help", ""), 55, 4, "This text will be displayed at the top of the story submission form. Useful for helping or instructing your users."); $output .= form_select(t("Minimum number of words"), "minimum_story_size", variable_get("minimum_story_size", 0), array(0 => "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal story entry should consist of. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts.")); diff --git a/modules/story/story.module b/modules/story/story.module index f4366d0cb..8742be964 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -7,6 +7,11 @@ function story_help() { return $output; } +function story_system($field){ + $system["description"] = t("Enables users to submit stories. These stories are not part of their blogs."); + return $system[$field]; +} + function story_conf_options() { $output .= form_textarea("Explanation or submission guidelines", "story_help", variable_get("story_help", ""), 55, 4, "This text will be displayed at the top of the story submission form. Useful for helping or instructing your users."); $output .= form_select(t("Minimum number of words"), "minimum_story_size", variable_get("minimum_story_size", 0), array(0 => "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal story entry should consist of. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts.")); diff --git a/modules/system.module b/modules/system.module index a1fe0c515..99aea87d1 100644 --- a/modules/system.module +++ b/modules/system.module @@ -8,6 +8,11 @@ function system_help() { return $output; } +function system_system($field){ + $system["description"] = t("You'll need this."); + return $system[$field]; +} + function system_help_cache() { $output .= "

Drupal has a caching mechanism that stores dynamically generated pages in a database. By caching a page, Drupal does not have to generate the page each time it is requested. Only pages requested by anonymous users are being cached. When a cached page is accessed, Drupal will retrieve that page with minimal overhead using one SQL query only, thus reducing both the server load and the response time.

"; $output .= "

Drupal's caching mechanism can be enabled and disabled by the site administrators from the 'settings' page. He can also define how long cached pages should be kept.

"; diff --git a/modules/system/system.module b/modules/system/system.module index a1fe0c515..99aea87d1 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -8,6 +8,11 @@ function system_help() { return $output; } +function system_system($field){ + $system["description"] = t("You'll need this."); + return $system[$field]; +} + function system_help_cache() { $output .= "

Drupal has a caching mechanism that stores dynamically generated pages in a database. By caching a page, Drupal does not have to generate the page each time it is requested. Only pages requested by anonymous users are being cached. When a cached page is accessed, Drupal will retrieve that page with minimal overhead using one SQL query only, thus reducing both the server load and the response time.

"; $output .= "

Drupal's caching mechanism can be enabled and disabled by the site administrators from the 'settings' page. He can also define how long cached pages should be kept.

"; diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 24d0062fd..695db46d2 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -1,6 +1,11 @@
". t("Subject") ."". t("Author") ."". t("Date") ."