You are here

function commons_connect_preprocess_user_profile_item in Drupal Commons 6.2

Profile preprocessing

File

themes/commons_connect/template.php, line 85

Code

function commons_connect_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']);
  }
}