You are here

function uc_stock_report_form_submit in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_stock/uc_stock.module \uc_stock_report_form_submit()
  2. 6.2 uc_stock/uc_stock.admin.inc \uc_stock_report_form_submit()

Form submission handler for uc_stock_report_form().

See also

uc_stock_report_form()

File

uc_stock/uc_stock.admin.inc, line 176
Stock administration menu items.

Code

function uc_stock_report_form_submit($form, &$form_state) {
  if ($form_state['values']['threshold']) {
    drupal_goto('admin/store/reports/stock/threshold');
  }
  else {
    drupal_goto('admin/store/reports/stock');
  }
}