diff options
Diffstat (limited to 'settings.inc')
-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'); -} - |