| 1 |
<?php |
<?php |
| 2 |
// $Id: user_stats.install,v 1.1.2.6.2.3 2008/11/18 22:24:43 liammcdermott Exp $ |
// $Id: user_stats.install,v 1.1.2.6.2.4 2009/02/01 00:45:17 liammcdermott Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 48 |
* Implementation of hook_update_N(). |
* Implementation of hook_update_N(). |
| 49 |
*/ |
*/ |
| 50 |
function user_stats_update_6100() { |
function user_stats_update_6100() { |
| 51 |
|
$ret = array(); |
| 52 |
// Making variable names consistent: 'postcount' becomes 'post_count'. |
// Making variable names consistent: 'postcount' becomes 'post_count'. |
| 53 |
$post_count_field = variable_get('user_stats_postcount_profile_field', 'user_post_count'); |
$post_count_field = variable_get('user_stats_postcount_profile_field', 'user_post_count'); |
| 54 |
variable_set('user_stats_post_count_profile_field', $post_count_field); |
variable_set('user_stats_post_count_profile_field', $post_count_field); |
| 55 |
variable_del('user_stats_postcount_profile_field'); |
variable_del('user_stats_postcount_profile_field'); |
| 56 |
|
|
| 57 |
|
return $ret; |
| 58 |
} |
} |