diff options
author | prashantsinalkar | 2018-03-23 14:49:23 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-03-23 14:49:23 +0530 |
commit | 53762d582520841fe82c48177999663f6c042bb4 (patch) | |
tree | 5243bd1460a22ca90c51e708f54b5f5a4198caf2 | |
parent | 9df3d2e726120b720a6fbfda029573779e4bf015 (diff) | |
parent | 7c90984319cf304e68af0029923fc18ec0781b63 (diff) | |
download | tbc-external-review-53762d582520841fe82c48177999663f6c042bb4.tar.gz tbc-external-review-53762d582520841fe82c48177999663f6c042bb4.tar.bz2 tbc-external-review-53762d582520841fe82c48177999663f6c042bb4.zip |
Merge branch 'master' of https://github.com/FOSSEE/tbc-external-review
-rwxr-xr-x | settings.inc | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/settings.inc b/settings.inc deleted file mode 100755 index 968ac57..0000000 --- a/settings.inc +++ /dev/null @@ -1,55 +0,0 @@ -<?php -// $Id$ - -function tbc_external_review_settings_form($form_state) -{ - $form['bcc_emails'] = array( - '#type' => 'textfield', - '#title' => t('Email id for BCC'), - '#description' => t('A comma separated list of email addresses to receive notifications emails'), - '#size' => 50, - '#maxlength' => 255, - '#required' => TRUE, - '#default_value' => variable_get('tbc_external_review_bcc_emails', ''), - ); - $form['cc_emails'] = array( - '#type' => 'textfield', - '#title' => t('Email id for CC'), - '#description' => t('A comma separated list of email addresses to receive notifications emails'), - '#size' => 50, - '#maxlength' => 255, - '#required' => TRUE, - '#default_value' => variable_get('tbc_external_review_cc_emails', ''), - ); - - $form['from_email'] = array( - '#type' => 'textfield', - '#title' => t('Outgoing from email address'), - '#description' => t('Email address to be display in the from field of all outgoing messages'), - '#size' => 50, - '#maxlength' => 255, - '#required' => TRUE, - '#default_value' => variable_get('tbc_external_review_from_email', ''), - ); - - $form['submit'] = array( - '#type' => 'submit', - '#value' => t('Submit') - ); - return $form; -} - -function tbc_external_review_settings_form_validate($form, &$form_state) -{ - return; -} - -function tbc_external_review_settings_form_submit($form, &$form_state) -{ - variable_set('tbc_external_review_bcc_emails', $form_state['values']['bcc_emails']); - variable_set('tbc_external_review_cc_emails', $form_state['values']['cc_emails']); - variable_set('tbc_external_review_from_email', $form_state['values']['from_email']); - - drupal_set_message(t('Settings updated'), 'status'); -} - |