summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2017-03-02 17:53:47 +0530
committerprashantsinalkar2017-03-02 17:53:47 +0530
commite1f8c648b5aa5e6b184bcd266bf3299a243792d5 (patch)
tree379f24d9c014bb5183595557bcf4ba5308b962e2
parent1d6c48c055acb670ea0547800e07b599e25467f5 (diff)
downloaddwsim_flowsheet-e1f8c648b5aa5e6b184bcd266bf3299a243792d5.tar.gz
dwsim_flowsheet-e1f8c648b5aa5e6b184bcd266bf3299a243792d5.tar.bz2
dwsim_flowsheet-e1f8c648b5aa5e6b184bcd266bf3299a243792d5.zip
abstract upload template fixed
-rwxr-xr-xemail.inc34
1 files changed, 13 insertions, 21 deletions
diff --git a/email.inc b/email.inc
index a8b34e1..714d1d3 100755
--- a/email.inc
+++ b/email.inc
@@ -347,39 +347,31 @@ FOSSEE,IIT Bombay', array(
);
break;
/**************************************************************/
- case 'solution_uploaded':
- // $solution_q = db_query("SELECT * FROM {dwsim_flowsheet_solution} WHERE id = %d LIMIT 1", $params['solution_uploaded']['solution_id']);
- $query = db_select('dwsim_flowsheet_solution');
- $query->fields('dwsim_flowsheet_solution');
- $query->condition('id', $params['solution_uploaded']['solution_id']);
- $query->range(0, 1);
- $solution_q = $query->execute();
- $solution_data = $solution_q->fetchObject();
- $query = db_select('dwsim_flowsheet_experiment');
- $query->fields('dwsim_flowsheet_experiment');
- $query->condition('id', $solution_data->experiment_id);
+ case 'abstract_uploaded':
+ // $solution_q = db_query("SELECT * FROM {dwsim_flowsheet_solution} WHERE id = %d LIMIT 1", $params['abstract_uploaded']['solution_id']);
+ $query = db_select('dwsim_flowsheet_proposal');
+ $query->fields('dwsim_flowsheet_proposal');
+ $query->condition('id', $params['abstract_uploaded']['proposal_id']);
$query->range(0, 1);
- $experiment_q = $query->execute();
- $experiment_data = $experiment_q->fetchObject();
- $user_data = user_load($params['solution_uploaded']['user_id']);
- $message['subject'] = t('[!site_name] You have uploaded DWSIM flowsheet solution', array(
+ $proposal_data = $query->execute()->fetchObject();
+
+ $user_data = user_load($params['abstract_uploaded']['user_id']);
+ $message['subject'] = t('[!site_name][Flowsheeting Project] You have uploaded DWSIM flowsheet abstract', array(
'!site_name' => variable_get('site_name', '')
), array(
'language' => $language->language
));
- $message['headers'] = $params['solution_uploaded']['headers'];
+ $message['headers'] = $params['abstract_uploaded']['headers'];
$message['body'] = array(
'body' => t('
Dear !user_name,
-You have uploaded the following solution:
+You have uploaded the following Abstract:
-Experiment Title : ' . $experiment_data->title . '
+Project Title : ' . $proposal_data->project_title . '
-Solution number : ' . $solution_data->code_number . '
-Caption : ' . $solution_data->caption . '
-The solution is under review. You will be notified when it has been approved.
+The abstract is under review. You will be notified when it has been approved.
Best Wishes,