You are here

function hook_recurring_info_alter in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 uc_recurring.api.php \hook_recurring_info_alter()

Alter the recurring method/ gateway info.

Parameters

$info: Array of the recurring fee handlers.

1 invocation of hook_recurring_info_alter()
uc_recurring_get_recurring_info in ./uc_recurring.module
Get the recurring handlers info.

File

./uc_recurring.api.php, line 78

Code

function hook_recurring_info_alter(&$info) {
  if (!empty($info['test_gateway'])) {

    // Change the permission on the test_gateway so only user with the
    // administer recurring fee permissions can cancel recurring fees.
    $info['test_gateway']['menu']['cancel'] = array(
      'title' => 'Cancel',
      'page arguments' => array(
        'uc_recurring_user_cancel_form',
      ),
      'file' => 'uc_recurring.pages.inc',
      'access callback' => 'user_access',
      'access arguments' => array(
        'administer recurring fees',
      ),
    );
  }
}