line_item_example.install 691 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php
/**
 * @file line_item_example.install
 */

/**
 * Implements hook_enable().
 *
 * Here we count on Commerce Line Items module to configure our type based on
 * the information we provide in
 * line_item_example_commerce_line_item_type_info().
 */
function line_item_example_enable() {
  // This function configures all existing line item types, including ours.
  commerce_line_item_configure_line_item_types();
16 17 18 19 20 21 22 23 24 25 26 27 28
}

/**
 * Implements hook_uninstall().
 */
function line_item_example_uninstall() {
  $variables = array(
    'line_item_example_line_item_2_amount',
    'line_item_example_line_item_2_currency',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
29
}