summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2020-06-15 16:23:40 +0530
committerprashantsinalkar2020-06-15 16:23:40 +0530
commit54e7af632961f52d81e4c1cb2a2827560f86871f (patch)
tree8548e0ad0427efdfce78e621e458b23cdc8140a2
parent350dfa082482fe29598e6c9eab39b189ba689216 (diff)
downloadEsim-Pspice-to-kicad-convertor-54e7af632961f52d81e4c1cb2a2827560f86871f.tar.gz
Esim-Pspice-to-kicad-convertor-54e7af632961f52d81e4c1cb2a2827560f86871f.tar.bz2
Esim-Pspice-to-kicad-convertor-54e7af632961f52d81e4c1cb2a2827560f86871f.zip
updated settings
-rwxr-xr-xsettings.inc12
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');
}