You are here

function commerce_reports_patterns_form in Commerce Reporting 7.3

Same name and namespace in other branches
  1. 7.4 modules/patterns/commerce_reports_patterns.admin.inc \commerce_reports_patterns_form()
1 string reference to 'commerce_reports_patterns_form'
commerce_reports_patterns_menu in modules/patterns/commerce_reports_patterns.module
Implements hook_menu().

File

modules/patterns/commerce_reports_patterns.admin.inc, line 3

Code

function commerce_reports_patterns_form($form, &$form_state) {
  $form['min_support'] = array(
    '#type' => 'textfield',
    '#title' => t('Minimum support'),
    '#description' => t('The minimum support should be given as a percentage that indicates what the minimum relative amount of transactions an item set requires to be frequent.'),
    '#size' => 6,
    '#field_suffix' => '%',
  );
  $form['min_confidence'] = array(
    '#type' => 'textfield',
    '#title' => t('Minimum confidence'),
    '#description' => t('The minimum confidence should be given as a percentage that indicates the chance of occurence a rule should minimally have.'),
    '#size' => 6,
    '#field_suffix' => '%',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Generate'),
  );
  return $form;
}