diff --git a/commerce_file.module b/commerce_file.module index 59bc4e0d36aea9fb9f3cef31d2054f5e5e490e17..8dc540dec3e14ea68c87182b8af5fec7141d0c7a 100644 --- a/commerce_file.module +++ b/commerce_file.module @@ -538,8 +538,7 @@ function commerce_file_product_types() { $file_product_types = variable_get('commerce_file_product_types', array()); $file_product_types = array_filter($file_product_types); // Return only those $file_product_types that are still licensable. - $license_product_types = variable_get('commerce_license_product_types', array()); - $license_product_types = array_filter($license_product_types); + $license_product_types = commerce_license_product_types(); return array_intersect($file_product_types, $license_product_types); } diff --git a/includes/commerce_file.admin.inc b/includes/commerce_file.admin.inc index 997ade39987de414f9ad1132580898f3283b7936..62369d07355cfb75437f6d582b0b4df2a089e3d9 100644 --- a/includes/commerce_file.admin.inc +++ b/includes/commerce_file.admin.inc @@ -16,8 +16,7 @@ function commerce_file_settings_form($form, &$form_state) { ); // Create a list of licensable product types and their labels. - $license_product_types = variable_get('commerce_license_product_types', array()); - $license_product_types = array_filter($license_product_types); + $license_product_types = commerce_license_product_types(); $product_types = array(); foreach (commerce_product_type_options_list() as $type => $label) { if (in_array($type, $license_product_types)) {