You are here

class uc_recurring_status_views_handler_field in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 views/uc_recurring_status_views_handler_field.inc \uc_recurring_status_views_handler_field

Field handler for uc_recurring status field.

Hierarchy

Expanded class hierarchy of uc_recurring_status_views_handler_field

1 string reference to 'uc_recurring_status_views_handler_field'
uc_recurring_views_data in views/uc_recurring.views.inc
Implementation of hook_views_data().

File

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

View source
class uc_recurring_status_views_handler_field extends views_handler_field {

  // We need a handler on the status to convert from integer to a label.
  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);
  }

}

Members