summaryrefslogtreecommitdiff
path: root/cheque_contact.inc
diff options
context:
space:
mode:
authorPrashant S2017-01-11 17:12:31 +0530
committerGitHub2017-01-11 17:12:31 +0530
commiteebe33c842d5509268abed21160f18e7c995b109 (patch)
treeac56475f157ff1d823a04abc0362cea814a089d4 /cheque_contact.inc
parent205c03ca3b0c7caaf42ba2e7649edd4ee06ccc44 (diff)
parentaf0e2cecbbc17eb4faa32571ea3031c0f1f07280 (diff)
downloaddwsim_textbook_companion-eebe33c842d5509268abed21160f18e7c995b109.tar.gz
dwsim_textbook_companion-eebe33c842d5509268abed21160f18e7c995b109.tar.bz2
dwsim_textbook_companion-eebe33c842d5509268abed21160f18e7c995b109.zip
Merge pull request #1 from prashantsinalkar/master
added certificate and other changes
Diffstat (limited to 'cheque_contact.inc')
-rwxr-xr-xcheque_contact.inc38
1 files changed, 19 insertions, 19 deletions
diff --git a/cheque_contact.inc b/cheque_contact.inc
index 65208fd..55c0af0 100755
--- a/cheque_contact.inc
+++ b/cheque_contact.inc
@@ -95,16 +95,16 @@ function paper_submission_form_submit($form, &$form_state)
{
/* sending email */
$book_user = user_load($proposal_data->uid);
- $param['proposal_completed']['proposal_id'] = $proposal_id;
- $param['proposal_completed']['user_id'] = $proposal_data->uid;
+ $params['proposal_completed']['proposal_id'] = $proposal_id;
+ $params['proposal_completed']['user_id'] = $proposal_data->uid;
$email_to = $book_user->mail;
- if (!drupal_mail('textbook_companion', 'internship_form', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'internship_form', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Internship Form for Book proposal has been recieved. User has been notified .', 'status');
}
else
{
- if (!drupal_mail('textbook_companion', 'internship_form_not', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'internship_form_not', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Internship Form for Book proposal has not been recieved. User has been notified .', 'status');
}
@@ -117,16 +117,16 @@ function paper_submission_form_submit($form, &$form_state)
{
/* sending email */
$book_user = user_load($proposal_data->uid);
- $param['proposal_completed']['proposal_id'] = $proposal_id;
- $param['proposal_completed']['user_id'] = $proposal_data->uid;
+ $params['proposal_completed']['proposal_id'] = $proposal_id;
+ $params['proposal_completed']['user_id'] = $proposal_data->uid;
$email_to = $book_user->mail;
- if (!drupal_mail('textbook_companion', 'copyrighttransfer_form', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'copyrighttransfer_form', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Copyright Form for Book proposal has been recieved. User has been notified .', 'status');
}
else
{
- if (!drupal_mail('textbook_companion', 'copyrighttransfer_form_not', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'copyrighttransfer_form_not', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Copyright Transfer Form for Book proposal has not been recieved. User has been notified .', 'status');
}
@@ -139,16 +139,16 @@ function paper_submission_form_submit($form, &$form_state)
{
/* sending email */
$book_user = user_load($proposal_data->uid);
- $param['proposal_completed']['proposal_id'] = $proposal_id;
- $param['proposal_completed']['user_id'] = $proposal_data->uid;
+ $params['proposal_completed']['proposal_id'] = $proposal_id;
+ $params['proposal_completed']['user_id'] = $proposal_data->uid;
$email_to = $book_user->mail;
- if (!drupal_mail('textbook_companion', 'undertakingform_form', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'undertakingform_form', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Undertaking Form for Book proposal has been recieved. User has been notified .', 'status');
}
else
{
- if (!drupal_mail('textbook_companion', 'undertakingform_form_not', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'undertakingform_form_not', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Undertaking Form for Book proposal has not been recieved. User has been notified .', 'status');
}
@@ -985,10 +985,10 @@ function cheque_status_form_submit($form, &$form_state)
$num_updated = $query->execute();
$book_user = user_load($proposal_data->uid);
- $param['proposal_completed']['proposal_id'] = $proposal_id;
- $param['proposal_completed']['user_id'] = $proposal_data->uid;
+ $params['proposal_completed']['proposal_id'] = $proposal_id;
+ $params['proposal_completed']['user_id'] = $proposal_data->uid;
$email_to = $book_user->mail;
- if (!drupal_mail('textbook_companion', 'cheque_sent', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'cheque_sent', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('Cheque for Book proposal has been Sent. User has been notified .', 'status');
}
@@ -1027,16 +1027,16 @@ function cheque_status_form_submit($form, &$form_state)
{
/* sending email */
$book_user = user_load($proposal_data->uid);
- $param['proposal_completed']['proposal_id'] = $proposal_id;
- $param['proposal_completed']['user_id'] = $proposal_data->uid;
+ $params['proposal_completed']['proposal_id'] = $proposal_id;
+ $params['proposal_completed']['user_id'] = $proposal_data->uid;
$email_to = $book_user->mail;
- if (!drupal_mail('textbook_companion', 'remark', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'remark', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message(t('Remark Updated. User has been notified'), 'status');
}
else
{
- if (!drupal_mail('textbook_companion', 'remark_not', $email_to , language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE))
+ if (!drupal_mail('textbook_companion', 'remark_not', $email_to , language_default(), $params, variable_get('textbook_companion_from_email', NULL), TRUE))
drupal_set_message('Error sending email message.', 'error');
drupal_set_message('No Remarks. User has been notified .', 'status');
}