You are here

function uc_recurring_subscription_nodeapi in UC Recurring Payments and Subscriptions 6.2

For recurring subscriptions we should.

File

modules/uc_recurring_subscription/uc_recurring_subscription.module, line 155
Manage subscription/memberships.

Code

function uc_recurring_subscription_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  if ($node->type == variable_get('uc_recurring_subscription_product_class', 'uc_recurring_subscription')) {
    switch ($op) {
      case 'load':
        $node->subscription = uc_recurring_subscription_load($node->nid);
    }
  }
}