You are here

function uc_file_notify_settings in Ubercart 5

Form builder for file download notification settings.

1 string reference to 'uc_file_notify_settings'
uc_file_menu in uc_file/uc_file.module
Implementation of hook_menu().

File

uc_file/uc_file.module, line 825
Allows products to be associated with downloadable files.

Code

function uc_file_notify_settings() {
  $form['uc_file_download_notification'] = array(
    '#type' => 'checkbox',
    '#title' => t('Send email to customer with file download link(s).'),
    '#default_value' => variable_get('uc_file_download_notification', FALSE),
  );
  $form['uc_file_download_notification_subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Message subject'),
    '#default_value' => variable_get('uc_file_download_notification_subject', uc_get_message('uc_file_download_subject')),
  );
  $form['uc_file_download_notification_message'] = array(
    '#type' => 'textarea',
    '#title' => t('Message text'),
    '#default_value' => variable_get('uc_file_download_notification_message', uc_get_message('uc_file_download_message')),
    '#description' => t('The message the user receives after purchasing products with file downloads (<a href="!token_url">uses order, uc_file, and global tokens</a>)', array(
      '!token_url' => url('admin/store/help/tokens'),
    )),
    '#rows' => 10,
  );
  $form['uc_file_download_notification_format'] = filter_form(variable_get('uc_file_download_notification_format', FILTER_FORMAT_DEFAULT), NULL, array(
    'uc_file_download_notification_format',
  ));
  return system_settings_form($form);
}