summaryrefslogtreecommitdiff
path: root/settings.inc
diff options
context:
space:
mode:
authorprashant2015-09-24 12:23:41 +0530
committerprashant2015-09-24 12:23:41 +0530
commit058634843b44a2cf695c77fcb7d30d6feb2a9e12 (patch)
treeaae29dc64c21cadaef54bf495f4fae342ef9d916 /settings.inc
parentba081ebbf3bccd0c6d8aa98798fc5c396bea0f48 (diff)
downloadscilab_textbook_companion-058634843b44a2cf695c77fcb7d30d6feb2a9e12.tar.gz
scilab_textbook_companion-058634843b44a2cf695c77fcb7d30d6feb2a9e12.tar.bz2
scilab_textbook_companion-058634843b44a2cf695c77fcb7d30d6feb2a9e12.zip
module updated to Drupal 7
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 e31c8a0..16d1126 100755
--- a/settings.inc
+++ b/settings.inc
@@ -12,6 +12,15 @@ function textbook_companion_settings_form($form_state)
'#required' => TRUE,
'#default_value' => variable_get('textbook_companion_emails', ''),
);
+ $form['bcc_emails_rem'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Notification emails of failed reminder bcc'),
+ '#description' => t('A comma separated list of email addresses to receive notifications emails'),
+ '#size' => 50,
+ '#maxlength' => 255,
+ '#required' => TRUE,
+ '#default_value' => variable_get('textbook_companion_emails_fail_rem_bcc', ''),
+ );
$form['to_emails'] = array(
'#type' => 'textfield',
'#title' => t('Notification emails to all'),
@@ -84,6 +93,7 @@ function textbook_companion_settings_form_validate($form, &$form_state)
function textbook_companion_settings_form_submit($form, &$form_state)
{
variable_set('textbook_companion_emails', $form_state['values']['emails']);
+ variable_set('textbook_companion_emails_fail_rem_bcc', $form_state['values']['bcc_emails_rem']);
variable_set('textbook_companion_emails_all', $form_state['values']['to_emails']);
variable_set('textbook_companion_from_email', $form_state['values']['from_email']);
variable_set('textbook_companion_source_extensions', $form_state['values']['source']);