You are here

function theme_uc_recurring_subscription_og_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_og_items()
1 theme call to theme_uc_recurring_subscription_og_items()
uc_recurring_subscription_product_form in modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc
Form to add a new payment interval for the product.

File

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

Code

function theme_uc_recurring_subscription_og_items($variables) {
  $variables = $variables['form'];
  $form = $variables['form'];
  $header = array(
    t('Subscribe on purchase'),
    t('Granted on expiration'),
    t('Revoked on expiration'),
  );
  $row = array();
  $row[] = drupal_render($form['subscribe_grant_og']);
  $row[] = drupal_render($form['expire_grant_og']);
  $row[] = drupal_render($form['expire_revoke_og']);
  $rows[] = $row;
  $output = theme('table', array(
    'header' => array(
      'header' => $header,
      'rows' => $rows,
    ),
  ));
  $output .= drupal_render_children($form);
  return $output;
}