summaryrefslogtreecommitdiff
path: root/settings.inc
diff options
context:
space:
mode:
authorSashi202019-05-06 15:54:06 +0530
committerSashi202019-05-06 15:54:06 +0530
commitd72c96889df292a9911876d68abe51a19df5a33b (patch)
tree5b4bc7f642e72758dd39f9a7535155e1093654d3 /settings.inc
parentb34eaf592792891d893ac06803b93c0d42b667b5 (diff)
downloadom_flowsheet-d72c96889df292a9911876d68abe51a19df5a33b.tar.gz
om_flowsheet-d72c96889df292a9911876d68abe51a19df5a33b.tar.bz2
om_flowsheet-d72c96889df292a9911876d68abe51a19df5a33b.zip
Add a new field to upload simulator package
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 cda4bc2..5f310da 100755
--- a/settings.inc
+++ b/settings.inc
@@ -47,6 +47,15 @@ function om_flowsheet_settings_form($form, $form_state)
'#required' => TRUE,
'#default_value' => variable_get('om_flowsheet_flowsheet_developed_process_source_extensions', '')
);
+ $form['extensions']['simulator_package_upload'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Allowed om flowsheet for the simulator package'),
+ '#description' => t('A comma separated list WITHOUT SPACE of pdf file extensions that are permitted to be uploaded on the server'),
+ '#size' => 50,
+ '#maxlength' => 255,
+ '#required' => TRUE,
+ '#default_value' => variable_get('om_flowsheet_simulator_package_extensions', '')
+ );
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit')
@@ -64,5 +73,6 @@ function om_flowsheet_settings_form_submit($form, &$form_state)
variable_set('om_flowsheet_from_email', $form_state['values']['from_email']);
variable_set('om_flowsheet_abstract_upload_extensions', $form_state['values']['abstract_upload']);
variable_set('om_flowsheet_flowsheet_developed_process_source_extensions', $form_state['values']['flowsheet_upload']);
+ variable_set('om_flowsheet_simulator_package_extensions', $form_state['values']['simulator_package_upload']);
drupal_set_message(t('Settings updated'), 'status');
}