diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blogapi/blogapi.module | 2 | ||||
-rw-r--r-- | modules/node/node.pages.inc | 6 | ||||
-rw-r--r-- | modules/profile/profile.module | 2 | ||||
-rw-r--r-- | modules/statistics/statistics.module | 6 | ||||
-rw-r--r-- | modules/system/system.install | 4 | ||||
-rw-r--r-- | modules/user/user.pages.inc | 7 |
6 files changed, 11 insertions, 16 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 926e4bc31..821c35f9f 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -396,12 +396,10 @@ function blogapi_metaweblog_get_recent_posts($blogid, $username, $password, $num return blogapi_blogger_get_recent_posts('0123456789ABCDEF', $blogid, $username, $password, $number_of_posts, TRUE); } -// see above function blogapi_mt_get_recent_post_titles($blogid, $username, $password, $number_of_posts) { return blogapi_blogger_get_recent_posts('0123456789ABCDEF', $blogid, $username, $password, $number_of_posts, FALSE); } -/* **** */ function blogapi_mt_get_category_list($blogid, $username, $password) { return blogapi_metaweblog_get_category_list($blogid, $username, $password); } diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index 66f781aee..7c667498e 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -115,10 +115,8 @@ function node_form(&$form_state, $node) { // Set the id of the top-level form tag $form['#id'] = 'node-form'; - /** - * Basic node information. - * These elements are just values so they are not even sent to the client. - */ + // Basic node information. + // These elements are just values so they are not even sent to the client. foreach (array('nid', 'vid', 'uid', 'created', 'type', 'language') as $key) { $form[$key] = array( '#type' => 'value', diff --git a/modules/profile/profile.module b/modules/profile/profile.module index c5aed1680..20d39547d 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -459,7 +459,7 @@ function profile_categories() { return $data; } -/* +/** * Menu item access callback - check if a user has access to a profile category. */ function profile_category_access($category) { diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index afcee9a53..831a0d5c7 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -180,12 +180,12 @@ function statistics_cron() { $statistics_timestamp = variable_get('statistics_day_timestamp', ''); if ((time() - $statistics_timestamp) >= 86400) { - /* reset day counts */ + // Reset day counts. db_query('UPDATE {node_counter} SET daycount = 0'); variable_set('statistics_day_timestamp', time()); } - /* clean expired access logs */ + // Clean up expired access logs. db_query('DELETE FROM {accesslog} WHERE timestamp < %d', time() - variable_get('statistics_flush_accesslog_timer', 259200)); } @@ -226,7 +226,7 @@ function statistics_title_list($dbfield, $dbrows) { function statistics_get($nid) { if ($nid > 0) { - /* retrieves an array with both totalcount and daycount */ + // Retrieve an array with both totalcount and daycount. $statistics = db_fetch_array(db_query('SELECT totalcount, daycount, timestamp FROM {node_counter} WHERE nid = %d', $nid)); } diff --git a/modules/system/system.install b/modules/system/system.install index 8020c11a3..a7d343471 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -267,12 +267,12 @@ function system_requirements($phase) { */ function system_install() { if ($GLOBALS['db_type'] == 'pgsql') { - /* create unsigned types */ + // Create unsigned types. db_query("CREATE DOMAIN int_unsigned integer CHECK (VALUE >= 0)"); db_query("CREATE DOMAIN smallint_unsigned smallint CHECK (VALUE >= 0)"); db_query("CREATE DOMAIN bigint_unsigned bigint CHECK (VALUE >= 0)"); - /* create functions */ + // Create functions. db_query('CREATE OR REPLACE FUNCTION "greatest"(numeric, numeric) RETURNS numeric AS \'SELECT CASE WHEN (($1 > $2) OR ($2 IS NULL)) THEN $1 ELSE $2 END;\' LANGUAGE \'sql\'' diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index d326b43b5..9262e4271 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -150,10 +150,9 @@ function user_view($account) { drupal_set_title(check_plain($account->name)); // Retrieve all profile fields and attach to $account->content. user_build_content($account); - /** - * To theme user profiles, copy modules/user/user_profile.tpl.php - * to your theme directory, and edit it as instructed in that file's comments. - */ + + // To theme user profiles, copy modules/user/user_profile.tpl.php + // to your theme directory, and edit it as instructed in that file's comments. return theme('user_profile', $account); } |