You are here

function views_handler_field_profile_selection in Views (for Drupal 7) 5

Display a profile field of type 'selection'

1 string reference to 'views_handler_field_profile_selection'
profile_views_add_field in modules/views_profile.inc
Add profile fields to view table

File

modules/views_profile.inc, line 232

Code

function views_handler_field_profile_selection($fieldinfo, $fielddata, $value, $data) {
  $value = unserialize($value) === false ? $value : unserialize($value);
  if (!is_array($value)) {
    $value = array(
      $value,
    );
  }

  // handles cases where values were set before this new profile module was put in place
  return check_plain(implode(', ', $value));
}