Commit e1fee126 authored by anthonylindsay's avatar anthonylindsay

Removed commented out old code.

parent e8b10c40
......@@ -258,27 +258,10 @@ 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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment