summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-08-20 05:57:41 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-08-20 05:57:41 +0000
commit55eec8f66f909fd105074142d99e22e02b489991 (patch)
tree246f2e41d47fd55b83dfcb690919e65e17e62e96 /modules/node/node.module
parente14c3aa6c0707c18005146f5311f0db0d5a1af3f (diff)
downloadbrdo-55eec8f66f909fd105074142d99e22e02b489991.tar.gz
brdo-55eec8f66f909fd105074142d99e22e02b489991.tar.bz2
#79601: module_exist() -> module_exists()
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 1457cfdc1..b8eb22d4c 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -785,10 +785,10 @@ function node_search($op = 'search', $keys = NULL) {
$ranking = array('node_rank_relevance' => t('Keyword relevance'),
'node_rank_recent' => t('Recently posted'));
- if (module_exist('comment')) {
+ if (module_exists('comment')) {
$ranking['node_rank_comments'] = t('Number of comments');
}
- if (module_exist('statistics') && variable_get('statistics_count_content_views', 0)) {
+ if (module_exists('statistics') && variable_get('statistics_count_content_views', 0)) {
$ranking['node_rank_views'] = t('Number of views');
}
@@ -846,7 +846,7 @@ function node_search($op = 'search', $keys = NULL) {
$join2 .= ' INNER JOIN {node} n ON n.nid = i.sid LEFT JOIN {node_comment_statistics} c ON c.nid = i.sid';
$stats_join = TRUE;
}
- if (module_exist('comment') && $weight = (int)variable_get('node_rank_comments', 5)) {
+ if (module_exists('comment') && $weight = (int)variable_get('node_rank_comments', 5)) {
// Inverse law that maps the highest reply count on the site to 1 and 0 to 0.
$scale = variable_get('node_cron_comments_scale', 0.0);
$ranking[] = '%d * (2.0 - 2.0 / (1.0 + c.comment_count * %f))';
@@ -856,7 +856,7 @@ function node_search($op = 'search', $keys = NULL) {
$join2 .= ' LEFT JOIN {node_comment_statistics} c ON c.nid = i.sid';
}
}
- if (module_exist('statistics') && variable_get('statistics_count_content_views', 0) &&
+ if (module_exists('statistics') && variable_get('statistics_count_content_views', 0) &&
$weight = (int)variable_get('node_rank_views', 5)) {
// Inverse law that maps the highest view count on the site to 1 and 0 to 0.
$scale = variable_get('node_cron_views_scale', 0.0);
@@ -1011,7 +1011,7 @@ function node_menu($may_cache) {
$items[] = array('path' => 'admin/content/node/overview', 'title' => t('list'),
'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10);
- if (module_exist('search')) {
+ if (module_exists('search')) {
$items[] = array('path' => 'admin/content/search', 'title' => t('search posts'),
'description' => t('Search posts by keyword.'),
'callback' => 'node_admin_search',