summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Lindsay2014-10-19 09:44:22 (GMT)
committerAnthony Lindsay2014-10-19 09:44:22 (GMT)
commite1fee126ba0480d2535848ad901f57be2dbec7a0 (patch)
treecfd9e8ae3dd93ef9229650dcca0674a8ab286ebe
parente8b10c40449bb525722c2081e14477d1ebc1021e (diff)
Removed commented out old code.
-rw-r--r--commerce_popular_products.module17
1 files changed, 0 insertions, 17 deletions
diff --git a/commerce_popular_products.module b/commerce_popular_products.module
index d3af44e..dadf957 100644
--- a/commerce_popular_products.module
+++ b/commerce_popular_products.module
@@ -258,28 +258,11 @@ function commerce_popular_products_settings_form($form, &$form_state) {
),
'#default_value' => $number,
);
- //$form['submit'] = array('#type' => 'submit', '#value' => t('Save'));
return system_settings_form($form);
}
/**
- * Custom submit handler for settings form: saves values to Variable table.
-
-function commerce_popular_products_settings_form_submit($form, &$form_state) {
- $values = $form_state['values'];
- $products = $values['product_types'];
- $time = $values['time_period'];
- $number = $values['number_display'];
- $title = $values['block_title'];
- variable_set('commerce_popular_products_title', $title);
- variable_set('commerce_popular_products_time', $time);
- variable_set('commerce_popular_products_number', $number);
- variable_set('commerce_popular_products_products', $products);
- drupal_set_message(t('Your settings have been saved.'));
-} */
-
-/**
* A simple query to return all the Commerce product types in the database.
*/
function commerce_popular_products_get_product_types() {