summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBojan Zivanovic2013-08-06 00:06:46 (GMT)
committer Bojan Zivanovic2013-08-06 00:06:46 (GMT)
commit97be956eb2f59b2a120d6f1bf9ef9a15d08f3432 (patch)
tree65f6aa964840586c1ad0917878fb76d397fb503c
parenteecd41835de9729d3d001dfbb26fc8c6d6f05d69 (diff)
Rename commerce_file_get_product_types() to commerce_file_product_types().
-rw-r--r--commerce_file.module4
-rw-r--r--includes/commerce_file.admin.inc2
2 files changed, 3 insertions, 3 deletions
diff --git a/commerce_file.module b/commerce_file.module
index 9fa56dd..59bc4e0 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 760512c..997ade3 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,
);