function commons_roots_preprocess_user_profile_item in Drupal Commons 6.2
Profile preprocessing
File
- themes/
commons_roots/ template.php, line 137
Code
function commons_roots_preprocess_user_profile_item(&$vars) {
// Separate userpoints value from the edit links
if ($vars['title'] == 'Points') {
$userpoints = explode(' - ', $vars['value']);
$vars['value'] = '<span class="points">' . $userpoints[0] . '</span><span class="edit-links">' . $userpoints[1] . '</span>';
unset($vars['title']);
}
}