You are here

uc_recurring_hosted.install in UC Recurring Payments and Subscriptions 7.2

Same filename and directory in other branches
  1. 6.2 modules/uc_recurring_hosted/uc_recurring_hosted.install

Installs the Recurring Fee Hosted module.

File

modules/uc_recurring_hosted/uc_recurring_hosted.install
View source
<?php

/**
 * @file
 * Installs the Recurring Fee Hosted module.
 */

/**
 * Implements hook_schema().
 */
function uc_recurring_hosted_schema() {
  $schema['uc_recurring_hosted'] = array(
    'description' => 'Stores recurring fee ids for hosted payment gateways.',
    'fields' => array(
      'rfid' => array(
        'description' => 'The id of the recurring fee.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'subscription_id' => array(
        'description' => 'The corresponding subscription id from the hosted gateway.',
        'type' => 'varchar',
        'length' => 50,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'rfid',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
uc_recurring_hosted_schema Implements hook_schema().