summaryrefslogtreecommitdiff
path: root/settings.inc
diff options
context:
space:
mode:
authorprashant2015-01-29 15:26:35 +0530
committerprashant2015-01-29 15:26:35 +0530
commit8217eebf9cf79414158f1df65dab890987d76bd2 (patch)
tree46d6c5f01a353d060d55c42657ca78e42c364f4b /settings.inc
parent5f3663c16c05e3ce4da7652dd84ad4728549c22d (diff)
downloadscilab_textbook_companion-8217eebf9cf79414158f1df65dab890987d76bd2.tar.gz
scilab_textbook_companion-8217eebf9cf79414158f1df65dab890987d76bd2.tar.bz2
scilab_textbook_companion-8217eebf9cf79414158f1df65dab890987d76bd2.zip
added book suggestion form
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 2b05f00..e31c8a0 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['to_emails'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Notification emails to all'),
+ '#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_all', ''),
+ );
$form['from_email'] = array(
'#type' => 'textfield',
@@ -75,6 +84,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_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']);
variable_set('textbook_companion_dependency_extensions', $form_state['values']['dependency']);