summaryrefslogtreecommitdiff
path: root/settings.inc
diff options
context:
space:
mode:
authorSashi202020-01-17 11:14:17 +0530
committerGitHub2020-01-17 11:14:17 +0530
commit03cfd5f99b6b64565ba63fa3661ff4d663e183cf (patch)
tree0f84d029287dcc0e680efe16af4c6c16630b6122 /settings.inc
parent22cf33a678b0854429e6445dc185cce489bc972b (diff)
parent328da2ded286bbf22d8044563b8c82a2239592c0 (diff)
downloadcfd_case_study-03cfd5f99b6b64565ba63fa3661ff4d663e183cf.tar.gz
cfd_case_study-03cfd5f99b6b64565ba63fa3661ff4d663e183cf.tar.bz2
cfd_case_study-03cfd5f99b6b64565ba63fa3661ff4d663e183cf.zip
Merge pull request #9 from Sashi20/master
Add available projects list
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 010f8e1..0586bdd 100755
--- a/settings.inc
+++ b/settings.inc
@@ -56,6 +56,15 @@ function cfd_case_study_settings_form($form, $form_state)
'#required' => TRUE,
'#default_value' => variable_get('case_study_project_files_extensions', '')
);
+ $form['extensions']['list_of_available_projects_file'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Allowed file extensions for file uploaded for available projects list'),
+ '#description' => t('A comma separated list WITHOUT SPACE of file extensions that are permitted to be uploaded on the server'),
+ '#size' => 50,
+ '#maxlength' => 255,
+ '#required' => TRUE,
+ '#default_value' => variable_get('list_of_available_projects_file', '')
+ );
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit')
@@ -74,5 +83,6 @@ function cfd_case_study_settings_form_submit($form, &$form_state)
variable_set('resource_upload_extensions', $form_state['values']['resource_upload']);
variable_set('case_study_abstract_upload_extensions', $form_state['values']['abstract_upload']);
variable_set('case_study_project_files_extensions', $form_state['values']['case_study_upload']);
+ variable_set('list_of_available_projects_file', $form_state['values']['list_of_available_projects_file']);
drupal_set_message(t('Settings updated'), 'status');
}