You are here

function theme_uc_recurring_subscription_role_items in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc \theme_uc_recurring_subscription_role_items()

File

modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc, line 970
Uc recurring subscription UI.

Code

function theme_uc_recurring_subscription_role_items($variables) {

  //$variables = $variables['form'];
  $form = $variables['form'];
  $header = array(
    t('Granted on purchase'),
    t('Granted on expiration'),
    t('Revoked on expiration'),
  );
  $row = array();
  $row[] = drupal_render($form['subscribe_grant']);
  $row[] = drupal_render($form['expire_grant']);
  $row[] = drupal_render($form['expire_revoke']);
  $rows[] = $row;
  $output = theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
  $output .= drupal_render_children($form);
  return $output;
}