You are here

uc_recurring_status_views_handler_field.inc in UC Recurring Payments and Subscriptions 6.2

Same filename and directory in other branches
  1. 7.2 views/uc_recurring_status_views_handler_field.inc

The Views status field handler for uc_recurring.

File

views/uc_recurring_status_views_handler_field.inc
View source
<?php

// $Id:

/**
 * @file
 * The Views status field handler for uc_recurring.
 */

/**
 * Field handler for uc_recurring status field.
 */
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);
  }

}

Classes

Namesort descending Description
uc_recurring_status_views_handler_field Field handler for uc_recurring status field.