diff options
author | prashantsinalkar | 2017-01-11 12:38:37 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-01-11 12:38:37 +0530 |
commit | af67f2284092e83d94877caa5ef1b0f90b6e1296 (patch) | |
tree | fee03412213941de3f346cf3243c4d4afb4eaff2 /dependency.inc | |
parent | 7121bf5f8c6b9c95e1736629055096abf7decba5 (diff) | |
download | dwsim_textbook_companion-af67f2284092e83d94877caa5ef1b0f90b6e1296.tar.gz dwsim_textbook_companion-af67f2284092e83d94877caa5ef1b0f90b6e1296.tar.bz2 dwsim_textbook_companion-af67f2284092e83d94877caa5ef1b0f90b6e1296.zip |
added feature to download the certificate and formated the code
Diffstat (limited to 'dependency.inc')
-rwxr-xr-x | dependency.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dependency.inc b/dependency.inc index c99da1d..89805ce 100755 --- a/dependency.inc +++ b/dependency.inc @@ -281,8 +281,8 @@ function upload_dependency_form_submit($form, &$form_state) { drupal_set_message('Dependencies uploaded successfully.', 'status'); /* sending email */ - $param['dependency_uploaded']['user_id'] = $user->uid; - $param['dependency_uploaded']['dependency_names'] = $dependency_names; + $params['dependency_uploaded']['user_id'] = $user->uid; + $params['dependency_uploaded']['dependency_names'] = $dependency_names; $email_to = $user->mail; if (!drupal_mail('textbook_companion', 'dependency_uploaded', $email_to, language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE)) drupal_set_message('Error sending email message.', 'error'); @@ -623,8 +623,8 @@ function edit_dependency_form_submit($form, &$form_state) { drupal_set_message('Dependencies uploaded successfully.', 'status'); /* sending email */ - $param['dependency_uploaded']['user_id'] = $user->uid; - $param['dependency_uploaded']['dependency_names'] = $dependency_names; + $params['dependency_uploaded']['user_id'] = $user->uid; + $params['dependency_uploaded']['dependency_names'] = $dependency_names; $email_to = $user->mail; if (!drupal_mail('textbook_companion', 'dependency_uploaded', $email_to, language_default(), $param, variable_get('textbook_companion_from_email', NULL), TRUE)) drupal_set_message('Error sending email message.', 'error'); |