You are here

function commerce_file_enable in Commerce File 7

Implements hook_enable().

  • Add our default line item file field to the line item types.

File

./commerce_file.module, line 586
Provides integration of file licenses with Commerce

Code

function commerce_file_enable() {

  // Add the default license fields.
  commerce_file_license_configure_types();

  // Add line item fields for all line item types
  commerce_file_configure_line_item_fields();
}