You are here

function uc_stock_report_form in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_stock/uc_stock.admin.inc \uc_stock_report_form()
  2. 7.3 uc_stock/uc_stock.admin.inc \uc_stock_report_form()
1 string reference to 'uc_stock_report_form'
uc_stock_report in uc_stock/uc_stock.module

File

uc_stock/uc_stock.module, line 278

Code

function uc_stock_report_form() {
  $form['threshold'] = array(
    '#type' => 'checkbox',
    '#title' => t('Only show SKUs that are below their threshold.'),
    '#default_value' => arg(4) == 'threshold' ? TRUE : FALSE,
    '#attributes' => array(
      'onchange' => 'this.form.submit();',
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
    '#attributes' => array(
      'style' => "display:none;",
    ),
  );
  return $form;
}