You are here

function uc_recurring_status_views_handler_field::render in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 views/uc_recurring_status_views_handler_field.inc \uc_recurring_status_views_handler_field::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

views/uc_recurring_status_views_handler_field.inc, line 14
The Views status field handler for uc_recurring.

Class

uc_recurring_status_views_handler_field
Field handler for uc_recurring status field.

Code

function render($values) {
  $status = $values->uc_recurring_users_status;

  // If no status assigned, then it spits an array. Set that to N/A.
  // Note that 0 is a valid value equal to Active.
  $label = $status != '' ? uc_recurring_fee_status_label($status) : 'N/A';
  return $label;

  //return var_dump($values);
}