diff options
-rwxr-xr-x | settings.inc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/settings.inc b/settings.inc index 60a6eed..6676e92 100755 --- a/settings.inc +++ b/settings.inc @@ -1,7 +1,7 @@ <?php // $Id$ -function pspicefile_settings_form($form_state) +function pspicefile_settings_form($form, &$form_state) { $form['emails'] = array( '#type' => 'textfield', @@ -41,6 +41,15 @@ function pspicefile_settings_form($form_state) '#required' => true, '#default_value' => variable_get('pspice_files_extensions', ''), ); + $form['extensions']['pdfpspicefile'] = array( + '#type' => 'textfield', + '#title' => t('Allowed PDF 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('pdfpspicefile_files_extensions', ''), + ); $form['extensions']['kicadcorrectedfile'] = array( '#type' => 'textfield', '#title' => t('Allowed Kicad corrected file extensions'), @@ -69,6 +78,7 @@ function pspicefile_settings_form_submit($form, &$form_state) variable_set('kicad_cc_emails', $form_state['values']['cc_emails']); variable_set('kicad_from_email', $form_state['values']['from_email']); variable_set('pspice_files_extensions', $form_state['values']['pspicefile']); + variable_set('pdfpspicefile_files_extensions', $form_state['values']['pdfpspicefile']); variable_set('kicad_corrected_files_extensions', $form_state['values']['kicadcorrectedfile']); drupal_set_message(t('Settings updated'), 'status'); } |