You are here

function uc_recurring_user_view in UC Recurring Payments and Subscriptions 7.2

Implements hook_user_view().

File

./uc_recurring.module, line 276
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_user_view($account, $view_mode) {

  // Show only if user is privileged, and there are recurring fees.
  if (uc_recurring_user_access($account)) {
    $account->content['summary']['recurring_fees'] = array(
      '#type' => 'user_profile_item',
      '#title' => t('Recurring fees'),
      '#markup' => l('Click here to view your recurring fees', 'user/' . $account->uid . '/recurring-fees'),
    );
  }
}