diff options
Diffstat (limited to 'cheque_contact.inc')
-rwxr-xr-x | cheque_contact.inc | 38 |
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'); } |