You are here

function uc_store_report_settings in Ubercart 5

1 string reference to 'uc_store_report_settings'
uc_store_menu in uc_store/uc_store.module
Implementation of hook_menu().

File

uc_store/uc_store.module, line 1713
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_report_settings() {
  $form['uc_store_report'] = array(
    '#type' => 'checkbox',
    '#title' => t('Report version information to Ubercart.org as shown below.'),
    '#default_value' => variable_get('uc_store_report', TRUE),
  );
  $form['data'] = array(
    '#type' => 'fieldset',
    '#title' => t('Report preview'),
  );
  $form['data']['preview'] = array(
    '#value' => '<pre>' . print_r(uc_store_report_data(), TRUE) . '</pre>',
  );
  return system_settings_form($form);
}