You are here

function views_handler_field_profile_checkbox in Views (for Drupal 7) 5

Display a profile field of type 'checkbox', view as tick mark

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

File

modules/views_profile.inc, line 257

Code

function views_handler_field_profile_checkbox($fieldinfo, $fielddata, $value, $data) {
  $value = unserialize($value) === false ? $value : unserialize($value);
  return check_plain($value) == '0' ? '✗' : '✓';
}