| 1 |
<?php |
<?php |
| 2 |
// $Id: user_stats.install,v 1.1.2.6 2008/03/21 17:17:01 liammcdermott Exp $ |
// $Id: user_stats.install,v 1.1.2.7 2009/02/01 03:44:11 liammcdermott Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 113 |
* Implementation of hook_update(). |
* Implementation of hook_update(). |
| 114 |
*/ |
*/ |
| 115 |
function user_stats_update_5() { |
function user_stats_update_5() { |
| 116 |
|
$ret = array(); |
| 117 |
// Making variable names consistent: 'postcount' becomes 'post_count'. |
// Making variable names consistent: 'postcount' becomes 'post_count'. |
| 118 |
$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'); |
| 119 |
variable_set('user_stats_post_count_profile_field', $post_count_field); |
variable_set('user_stats_post_count_profile_field', $post_count_field); |
| 120 |
variable_del('user_stats_postcount_profile_field'); |
variable_del('user_stats_postcount_profile_field'); |
| 121 |
|
|
| 122 |
|
return $ret; |
| 123 |
} |
} |