You are here

function commerce_recurring_install in Commerce Recurring Framework 7.2

Same name and namespace in other branches
  1. 7 commerce_recurring.install \commerce_recurring_install()

Implements hook_install().

File

./commerce_recurring.install, line 94

Code

function commerce_recurring_install() {

  // Create the recurring product type.
  $product_type = array(
    'type' => 'recurring',
    'name' => t('Recurring product'),
    'description' => t('A recurring purchase product type'),
    'help' => '',
    'revision' => 1,
    'is_new' => TRUE,
  );
  commerce_product_ui_product_type_save($product_type, FALSE);
}