diff options
author | Prashant S | 2020-06-15 16:25:26 +0530 |
---|---|---|
committer | GitHub | 2020-06-15 16:25:26 +0530 |
commit | b61d34b7bcc13a7ff2fe6d15b7defbc5516d0a17 (patch) | |
tree | 8548e0ad0427efdfce78e621e458b23cdc8140a2 /settings.inc | |
parent | 43debb56975ed13ba1664c6cc4e1a123061a72e9 (diff) | |
parent | 54e7af632961f52d81e4c1cb2a2827560f86871f (diff) | |
download | Esim-Pspice-to-kicad-convertor-b61d34b7bcc13a7ff2fe6d15b7defbc5516d0a17.tar.gz Esim-Pspice-to-kicad-convertor-b61d34b7bcc13a7ff2fe6d15b7defbc5516d0a17.tar.bz2 Esim-Pspice-to-kicad-convertor-b61d34b7bcc13a7ff2fe6d15b7defbc5516d0a17.zip |
Merge pull request #4 from prashantsinalkar/master
updated code and fixed issues
Diffstat (limited to 'settings.inc')
-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'); } |