function uc_reports_sales_year_form in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_reports/uc_reports.module \uc_reports_sales_year_form()
- 6.2 uc_reports/uc_reports.admin.inc \uc_reports_sales_year_form()
Form to specify a year for the yearly sales report.
See also
uc_reports_sales_year_form_submit()
1 string reference to 'uc_reports_sales_year_form'
- uc_reports_sales_year in uc_reports/
uc_reports.admin.inc - Displays the yearly sales report form and table.
File
- uc_reports/
uc_reports.admin.inc, line 986 - Reports administration menu items.
Code
function uc_reports_sales_year_form($form, &$form_state, $year) {
$form['year'] = array(
'#type' => 'textfield',
'#title' => t('Sales year'),
'#default_value' => $year,
'#maxlength' => 4,
'#size' => 4,
'#prefix' => '<div class="sales-year">',
'#suffix' => '</div>',
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('View'),
'#prefix' => '<div class="sales-year">',
'#suffix' => '</div>',
);
return $form;
}