diff --git a/commerce_file.module b/commerce_file.module index 9fa56dd5697ed5a9cc703aada0bbb056c5f7bec0..59bc4e0d36aea9fb9f3cef31d2054f5e5e490e17 100644 --- a/commerce_file.module +++ b/commerce_file.module @@ -524,7 +524,7 @@ function commerce_file_commerce_license_types_list_alter(&$types, $product) { * Ensures that products have the required commerce_file field. */ function commerce_file_flush_caches() { - $product_types = commerce_file_get_product_types(); + $product_types = commerce_file_product_types(); commerce_file_configure_product_types($product_types); } @@ -534,7 +534,7 @@ function commerce_file_flush_caches() { * @return * An array of product type machine names. */ -function commerce_file_get_product_types() { +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. diff --git a/includes/commerce_file.admin.inc b/includes/commerce_file.admin.inc index 760512c82c1c27f69e79c173f72d92f7db967284..997ade39987de414f9ad1132580898f3283b7936 100644 --- a/includes/commerce_file.admin.inc +++ b/includes/commerce_file.admin.inc @@ -36,7 +36,7 @@ function commerce_file_settings_form($form, &$form_state) { $form['commerce_file_product_types'] = array( '#title' => t('Product types'), '#type' => 'checkboxes', - '#default_value' => commerce_file_get_product_types(), + '#default_value' => commerce_file_product_types(), '#options' => $product_types, );