You are here

function sms_user_handler_field_status::render in SMS Framework 6.2

Same name and namespace in other branches
  1. 7 modules/sms_user/includes/sms_user_handler_field_status.inc \sms_user_handler_field_status::render()

File

modules/sms_user/includes/sms_user_handler_field_status.inc, line 14
Views handler to display the sms number status.

Class

sms_user_handler_field_status
Field handler to show the sms number status.

Code

function render($values) {
  $status = $values->{$this->field_alias};
  $status_defined = array(
    SMS_USER_PENDING => t('Pending'),
    SMS_USER_CONFIRMED => t('Confirmed'),
  );
  return $status_defined[$status];
}