summaryrefslogtreecommitdiff
path: root/settings.inc
diff options
context:
space:
mode:
Diffstat (limited to 'settings.inc')
-rwxr-xr-xsettings.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/settings.inc b/settings.inc
index 771943b..347148e 100755
--- a/settings.inc
+++ b/settings.inc
@@ -38,6 +38,15 @@ function textbook_companion_settings_form($form, &$form_state)
'#required' => TRUE,
'#default_value' => variable_get('textbook_companion_source_extensions', '')
);
+ $form['extensions']['dataset'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Allowed source file extensions'),
+ '#description' => t('A comma separated list WITHOUT SPACE of source file extensions that are permitted to be uploaded on the server'),
+ '#size' => 50,
+ '#maxlength' => 255,
+ '#required' => TRUE,
+ '#default_value' => variable_get('textbook_companion_dataset_extensions', '')
+ );
$form['extensions']['sample_source'] = array(
'#type' => 'textfield',
'#title' => t('Allowed sample source file extensions'),
@@ -76,6 +85,7 @@ function textbook_companion_settings_form_submit($form, &$form_state)
variable_set('textbook_companion_cc_emails', $form_state['values']['cc_emails']);
variable_set('textbook_companion_from_email', $form_state['values']['from_email']);
variable_set('textbook_companion_source_extensions', $form_state['values']['source']);
+ variable_set('textbook_companion_dataset_extensions', $form_state['values']['dataset']);
variable_set('textbook_companion_sample_source_extensions', $form_state['values']['sample_source']);
variable_set('textbook_companion_book_preferences', $form_state['values']['book_preference_options']);
drupal_set_message(t('Settings updated'), 'status');