summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmanage_proposal.inc14
-rwxr-xr-xtextbook_companion.module363
2 files changed, 178 insertions, 199 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc
index d8f1974..47d9e52 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -934,6 +934,19 @@ function proposal_edit_form($form, &$form_state, $nonaicte_book)
$preference3_q = $query->execute();
$preference3_data = $preference3_q->fetchObject();
/*************************************************************************/
+ $form['name_title'] = array(
+ '#type' => 'select',
+ '#title' => t('Title'),
+ '#options' => array(
+ 'Dr' => 'Dr',
+ 'Prof' => 'Prof',
+ 'Mr' => 'Mr',
+ 'Mrs' => 'Mrs',
+ 'Ms' => 'Ms'
+ ),
+ '#required' => TRUE,
+ '#default_value' => $proposal_data->name_title
+ );
$form['full_name'] = array(
'#type' => 'textfield',
'#title' => t('Full Name'),
@@ -1411,6 +1424,7 @@ function proposal_edit_form_submit($form, &$form_state)
}
$query = db_update('textbook_companion_proposal');
$query->fields(array(
+ 'name_title' => $form_state['values']['name_title'],
'full_name' => $form_state['values']['full_name'],
'mobile' => $form_state['values']['mobile'],
'how_project' => $form_state['values']['how_project'],
diff --git a/textbook_companion.module b/textbook_companion.module
index 9982c87..9058a78 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -1756,6 +1756,18 @@ function book_proposal_form($form, &$form_state)
'#type' => 'item',
'#markup' => '<font color="red"><b>Please fill up this form carefully as the details entered here will be exactly written in the Textbook Companion</b></font>'
);
+ $form['name_title'] = array(
+ '#type' => 'select',
+ '#title' => t('Title'),
+ '#options' => array(
+ 'Dr' => 'Dr',
+ 'Prof' => 'Prof',
+ 'Mr' => 'Mr',
+ 'Mrs' => 'Mrs',
+ 'Ms' => 'Ms'
+ ),
+ '#required' => TRUE
+ );
$form['full_name'] = array(
'#type' => 'textfield',
'#title' => t('Full Name'),
@@ -1777,7 +1789,7 @@ function book_proposal_form($form, &$form_state)
'#maxlength' => 15,
'#required' => TRUE
);
- $form['gender'] = array(
+/* $form['gender'] = array(
'#type' => 'radios',
'#title' => t('Gender'),
'#options' => array(
@@ -1785,7 +1797,7 @@ function book_proposal_form($form, &$form_state)
'F' => 'Female'
),
'#required' => TRUE
- );
+ );*/
$form['how_project'] = array(
'#type' => 'select',
'#title' => t('How did you come to know about this project'),
@@ -2003,7 +2015,7 @@ function book_proposal_form($form, &$form_state)
);
$form['reason'] = array(
'#type' => 'checkboxes',
- '#title' => t('Reasons'),
+ '#title' => t('Reasons for selecting this book'),
'#options' => $reason,
'#required' => TRUE
);
@@ -2033,7 +2045,7 @@ function book_proposal_form($form, &$form_state)
'#size' => 500,
'#maxlength' => 500,
'#attributes' => array(
- 'placeholder' => 'Links of the syllabus must be provided....'
+ 'placeholder' => 'Please mention link(s) of the syllabus where this book has been recommended by University/ College/ Institute'
)
);
$form['form_type'] = array(
@@ -2436,15 +2448,15 @@ function book_proposal_form_submit($form, &$form_state, $directory_name = NULL)
$form_state['values']['reason'] = $my_reason;
} //isset($_POST['reason'])
$query = "INSERT INTO {textbook_companion_proposal}
- (uid, approver_uid, full_name, mobile, gender, how_project, course, branch, university,city,pincode,state,country, faculty, reviewer,reference, completion_date, creation_date, approval_date, proposal_status, r_version, operating_system, teacher_email,reason,samplefilepath,proposal_type,proposed_completion_date) VALUES (:uid, :approver_uid, :full_name, :mobile, :gender, :how_project, :course, :branch, :university, :city,:pincode,:state,:country, :faculty, :reviewer,:reference, :completion_date,
+ (uid, approver_uid, name_title, full_name, mobile, how_project, course, branch, university,city,pincode,state,country, faculty, reviewer,reference, completion_date, creation_date, approval_date, proposal_status, r_version, operating_system, teacher_email,reason,samplefilepath,proposal_type,proposed_completion_date) VALUES (:uid, :approver_uid, :name_title, :full_name, :mobile, :how_project, :course, :branch, :university, :city,:pincode,:state,:country, :faculty, :reviewer,:reference, :completion_date,
:creation_date, :approval_date, :proposal_status, :r_version, :operating_system,
:teacher_email,:reason,:samplefilepath,:proposal_type, :proposed_completion_date)";
$args = array(
":uid" => $user->uid,
":approver_uid" => 0,
+ ":name_title" => $form_state['values']['name_title'],
":full_name" => trim(ucwords(strtolower($form_state['values']['full_name']))),
":mobile" => trim($form_state['values']['mobile']),
- ":gender" => $form_state['values']['gender'],
":how_project" => $form_state['values']['how_project'],
":course" => trim($form_state['values']['course']),
":branch" => trim($form_state['values']['branch']),
@@ -2728,40 +2740,34 @@ function textbook_companion_mail($key, &$message, $params)
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
-
-We have received your proposal for R Textbook Companion with the following details:
-
-Full Name : ' . $proposal_data->full_name . '
-Email : ' . $user_data->mail . '
-Mobile : ' . $proposal_data->mobile . '
-Course : ' . $proposal_data->course . '
-Department/Branch : ' . $proposal_data->branch . '
-University/Institute : ' . $proposal_data->university . '
-City : ' . $proposal_data->city . '
-State : ' . $proposal_data->state . '
-Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
-
-
-Your Book Preferences :
+Dear ' . $proposal_data->full_name . ',
-Book Preference :-
-Title of the book : ' . $preference1_data->book . '
-Author name : ' . $preference1_data->author . '
-ISBN No. : ' . $preference1_data->isbn . '
-Publisher and Place : ' . $preference1_data->publisher . '
-Edition : ' . $preference1_data->edition . '
-Year of publication : ' . $preference1_data->year . '
+This is to inform you that we have received your proposal for R Textbook Companion (TBC) with the following details:
+Full Name: ' . $proposal_data->full_name . '
+Email: ' . $user_data->mail . '
+Mobile: ' . $proposal_data->mobile . '
+Course: ' . $proposal_data->course . '
+Department/Branch: ' . $proposal_data->branch . '
+University/Institute: ' . $proposal_data->university . '
+City: ' . $proposal_data->city . '
+State: ' . $proposal_data->state . '
+Expected date of completion: ' . date('d-m-Y', $proposal_data->completion_date) . '
+Book Preference:-
+Title of the book: ' . $preference1_data->book . '
+Author name: ' . $preference1_data->author . '
+ISBN No.: ' . $preference1_data->isbn . '
+Publisher and Place: ' . $preference1_data->publisher . '
+Edition: ' . $preference1_data->edition . '
+Year of publication: ' . $preference1_data->year . '
-
-Your proposal is under review. You will soon receive an email when your proposal has been approved/ disapproved. Thank you for your submission.
+Your proposal is under review. You will soon receive an email when your proposal has been approved/ disapproved. Thank you for your submission.
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -2795,45 +2801,19 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
-
-We regret to inform you that all the uploaded examples including the book
-with following details have been deleted permanently.
-
-Full Name : ' . $proposal_data->full_name . '
-Email : ' . $user_data->mail . '
-Mobile : ' . $proposal_data->mobile . '
-Course : ' . $proposal_data->course . '
-Department/Branch : ' . $proposal_data->branch . '
-University/Institute : ' . $proposal_data->university . '
-City : ' . $proposal_data->city . '
-State : ' . $proposal_data->state . '
-
-Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
-
-Reason : ' . $proposal_data->reason . '
+Dear ' . $proposal_data->full_name . ',
+We regret to inform you that your book proposal for R Textbook Companion (TBC) has been disapproved due to following reason.
-Reference : ' . $proposal_data->reference . '
-
-Your Book Preferences :
-
-Book Preference 1 :-
-Title of the book : ' . $preference1_data->book . '
-Author name : ' . $preference1_data->author . '
-ISBN No. : ' . $preference1_data->isbn . '
-Publisher and Place : ' . $preference1_data->publisher . '
-Edition : ' . $preference1_data->edition . '
-Year of publication : ' . $preference1_data->year . '
-
+Title of the book: ' . $preference1_data->book . '
Reason for disapproval: ' . $proposal_data->message . '
-You are welcome to submit a new proposal.
+Please try to re-submit it after incorporating the comments given above. Please note that the records for this book proposal have been deleted so that you can submit the proposal again.
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -2865,40 +2845,25 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
-
-Congratulations! Your proposal for R Textbook Companion with the following details is approved.
+Dear ' . $proposal_data->full_name . ',
-Full Name : ' . $proposal_data->full_name . '
-Email : ' . $user_data->mail . '
-Mobile : ' . $proposal_data->mobile . '
-Course : ' . $proposal_data->course . '
-Department/Branch : ' . $proposal_data->branch . '
-University/Institute : ' . $proposal_data->university . '
-College Teacher / Professor : ' . $proposal_data->faculty . '
-Reviewer : ' . $proposal_data->reviewer . '
-Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
-
-Reason : ' . $proposal_data->reason . '
-
-Reference : ' . $proposal_data->reference . '
-
-Title of the book : ' . $approved_preference_data->book . '
-Author name : ' . $approved_preference_data->author . '
-ISBN No. : ' . $approved_preference_data->isbn . '
-Publisher and Place : ' . $approved_preference_data->publisher . '
-Edition : ' . $approved_preference_data->edition . '
-Year of publication : ' . $approved_preference_data->year . '
+Congratulations! Your proposal for R Textbook Companion (TBC) with the following details is approved. Please start writing code for all the solved examples of your book and upload on https://r.fossee.in/.
Please ensure that ALL the guidelines for coding are strictly followed:
https://r.fossee.in/textbook-companion/guidelines-coding
+Title of the book: ' . $approved_preference_data->book . '
+Author name: ' . $approved_preference_data->author . '
+ISBN No.: ' . $approved_preference_data->isbn . '
+Publisher and Place: ' . $approved_preference_data->publisher . '
+Edition: ' . $approved_preference_data->edition . '
+Year of publication: ' . $approved_preference_data->year . '
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -2930,25 +2895,25 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
The textbook companion on the following book has been completed successfully by you:
-Full Name : ' . $proposal_data->full_name . '
-Email : ' . $user_data->mail . '
-Mobile : ' . $proposal_data->mobile . '
-Course : ' . $proposal_data->course . '
-Department/Branch : ' . $proposal_data->branch . '
-University/Institute : ' . $proposal_data->university . '
-College Teacher / Professor : ' . $proposal_data->faculty . '
-Reviewer : ' . $proposal_data->reviewer . '
-Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
-Title of the book : ' . $approved_preference_data->book . '
-Author name : ' . $approved_preference_data->author . '
-ISBN No. : ' . $approved_preference_data->isbn . '
-Publisher and Place : ' . $approved_preference_data->publisher . '
-Edition : ' . $approved_preference_data->edition . '
-Year of publication : ' . $approved_preference_data->year . '
+Full Name: ' . $proposal_data->full_name . '
+Email: ' . $user_data->mail . '
+Mobile: ' . $proposal_data->mobile . '
+Course: ' . $proposal_data->course . '
+Department/Branch: ' . $proposal_data->branch . '
+University/Institute: ' . $proposal_data->university . '
+College Teacher / Professor: ' . $proposal_data->faculty . '
+Reviewer: ' . $proposal_data->reviewer . '
+Expected date of completion: ' . date('d-m-Y', $proposal_data->completion_date) . '
+Title of the book: ' . $approved_preference_data->book . '
+Author name: ' . $approved_preference_data->author . '
+ISBN No.: ' . $approved_preference_data->isbn . '
+Publisher and Place: ' . $approved_preference_data->publisher . '
+Edition: ' . $approved_preference_data->edition . '
+Year of publication: ' . $approved_preference_data->year . '
Your book is now available at following link to download at https://r.fossee.in/textbook-companion/textbook-run/' . $approved_preference_data->id . '
You may download your certificate from http://r.fossee.in/textbook-companion/certificate after logging in your account.
@@ -2957,8 +2922,8 @@ Now you should be able to propose a new book.
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -2990,34 +2955,34 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
You have submitted codes for all examples:
-Full Name : ' . $proposal_data->full_name . '
-Email : ' . $user_data->mail . '
-Mobile : ' . $proposal_data->mobile . '
-Course : ' . $proposal_data->course . '
-Department/Branch : ' . $proposal_data->branch . '
-University/Institute : ' . $proposal_data->university . '
-College Teacher / Professor : ' . $proposal_data->faculty . '
-Reviewer : ' . $proposal_data->reviewer . '
-Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
+Full Name: ' . $proposal_data->full_name . '
+Email: ' . $user_data->mail . '
+Mobile: ' . $proposal_data->mobile . '
+Course: ' . $proposal_data->course . '
+Department/Branch: ' . $proposal_data->branch . '
+University/Institute: ' . $proposal_data->university . '
+College Teacher / Professor: ' . $proposal_data->faculty . '
+Reviewer: ' . $proposal_data->reviewer . '
+Expected date of completion: ' . date('d-m-Y', $proposal_data->completion_date) . '
-Title of the book : ' . $approved_preference_data->book . '
-Author name : ' . $approved_preference_data->author . '
-ISBN No. : ' . $approved_preference_data->isbn . '
-Publisher and Place : ' . $approved_preference_data->publisher . '
-Edition : ' . $approved_preference_data->edition . '
-Year of publication : ' . $approved_preference_data->year . '
+Title of the book: ' . $approved_preference_data->book . '
+Author name: ' . $approved_preference_data->author . '
+ISBN No.: ' . $approved_preference_data->isbn . '
+Publisher and Place: ' . $approved_preference_data->publisher . '
+Edition: ' . $approved_preference_data->edition . '
+Year of publication: ' . $approved_preference_data->year . '
You shall be notified after the code is reviewed.
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3049,32 +3014,32 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
Your interface for code submission has been enabled by the reviewer, you can now send more code for this book.
-Full Name : ' . $proposal_data->full_name . '
-Email : ' . $user_data->mail . '
-Mobile : ' . $proposal_data->mobile . '
-Course : ' . $proposal_data->course . '
-Department/Branch : ' . $proposal_data->branch . '
-University/Institute : ' . $proposal_data->university . '
-College Teacher / Professor : ' . $proposal_data->faculty . '
-Reviewer : ' . $proposal_data->reviewer . '
-Expected date of completion : ' . date('d-m-Y', $proposal_data->completion_date) . '
+Full Name: ' . $proposal_data->full_name . '
+Email: ' . $user_data->mail . '
+Mobile: ' . $proposal_data->mobile . '
+Course: ' . $proposal_data->course . '
+Department/Branch: ' . $proposal_data->branch . '
+University/Institute: ' . $proposal_data->university . '
+College Teacher / Professor: ' . $proposal_data->faculty . '
+Reviewer: ' . $proposal_data->reviewer . '
+Expected date of completion: ' . date('d-m-Y', $proposal_data->completion_date) . '
-Title of the book : ' . $approved_preference_data->book . '
-Author name : ' . $approved_preference_data->author . '
-ISBN No. : ' . $approved_preference_data->isbn . '
-Publisher and Place : ' . $approved_preference_data->publisher . '
-Edition : ' . $approved_preference_data->edition . '
-Year of publication : ' . $approved_preference_data->year . '
+Title of the book: ' . $approved_preference_data->book . '
+Author name: ' . $approved_preference_data->author . '
+ISBN No.: ' . $approved_preference_data->isbn . '
+Publisher and Place: ' . $approved_preference_data->publisher . '
+Edition: ' . $approved_preference_data->edition . '
+Year of publication: ' . $approved_preference_data->year . '
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3110,21 +3075,21 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
You have uploaded the following solution :
-Title of the book : ' . $preference_data->book . '
-Title of the chapter : ' . $chapter_data->name . '
-Example number : ' . $example_data->number . '
-Caption : ' . $example_data->caption . '
+Title of the book: ' . $preference_data->book . '
+Title of the chapter: ' . $chapter_data->name . '
+Example number: ' . $example_data->number . '
+Caption: ' . $example_data->caption . '
You shall be notified after the solution is reviewed
Best Wishes,
!site_name Team,
-FOSSEE,IIT Bombay', array(
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3158,21 +3123,21 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
You have updated the following example:
-Title of the book : ' . $preference_data->book . '
-Title of the chapter : ' . $chapter_data->name . '
-Example number : ' . $example_data->number . '
-Caption : ' . $example_data->caption . '
+Title of the book: ' . $preference_data->book . '
+Title of the chapter: ' . $chapter_data->name . '
+Example number: ' . $example_data->number . '
+Caption: ' . $example_data->caption . '
The example is still under review. You will be notified when it has been approved.
Best Wishes,
!site_name Team,
-FOSSEE,IIT Bombay', array(
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3206,19 +3171,19 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
Reviewer have updated the following example:
-Title of the book : ' . $preference_data->book . '
-Title of the chapter : ' . $chapter_data->name . '
-Example number : ' . $example_data->number . '
-Caption : ' . $example_data->caption . '
+Title of the book: ' . $preference_data->book . '
+Title of the chapter: ' . $chapter_data->name . '
+Example number: ' . $example_data->number . '
+Caption: ' . $example_data->caption . '
Best Wishes,
!site_name Team,
-FOSSEE,IIT Bombay', array(
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3253,19 +3218,19 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
Your example for R Textbook Companion with the following details is approved.
-Title of the book : ' . $preference_data->book . '
-Title of the chapter : ' . $chapter_data->name . '
-Example number : ' . $example_data->number . '
-Caption : ' . $example_data->caption . '
+Title of the book: ' . $preference_data->book . '
+Title of the chapter: ' . $chapter_data->name . '
+Example number: ' . $example_data->number . '
+Caption: ' . $example_data->caption . '
Best Wishes,
!site_name Team,
-FOSSEE,IIT Bombay', array(
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3294,21 +3259,21 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
Your following example has been disapproved:
-Title of the book : ' . $preference_data->book . '
-Title of the chapter : ' . $chapter_data->name . '
-Example number : ' . $params['example_disapproved']['example_number'] . '
-Caption : ' . $params['example_disapproved']['example_caption'] . '
+Title of the book: ' . $preference_data->book . '
+Title of the chapter: ' . $chapter_data->name . '
+Example number: ' . $params['example_disapproved']['example_number'] . '
+Caption: ' . $params['example_disapproved']['example_caption'] . '
-Reason for dis-approval : ' . $params['example_disapproved']['message'] . '
+Reason for dis-approval: ' . $params['example_disapproved']['message'] . '
Best Wishes,
!site_name Team,
-FOSSEE,IIT Bombay', array(
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3323,19 +3288,19 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
Your following pending example has been deleted :
-Title of the Book : ' . $params['example_deleted_user']['book_title'] . '
-Title of the Chapter : ' . $params['example_deleted_user']['chapter_title'] . '
-Example number : ' . $params['example_deleted_user']['example_number'] . '
-Caption : ' . $params['example_deleted_user']['example_caption'] . '
+Title of the Book: ' . $params['example_deleted_user']['book_title'] . '
+Title of the Chapter: ' . $params['example_deleted_user']['chapter_title'] . '
+Example number: ' . $params['example_deleted_user']['example_number'] . '
+Caption: ' . $params['example_deleted_user']['example_caption'] . '
Best Wishes,
!site_name Team,
-FOSSEE,IIT Bombay', array(
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3351,15 +3316,15 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
-You have uploaded following dependency files :
+You have uploaded following dependency files:
' . $dependency_files . '
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3374,7 +3339,7 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
We have received your following feedback
@@ -3387,8 +3352,8 @@ Your feedback :
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3403,7 +3368,7 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
We have received your Internship Form Application for the book
@@ -3413,8 +3378,8 @@ Example No.: ' . $params['internshipform']['example_no'] . '
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3429,7 +3394,7 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
We have received your Copyright Form Application for the book
@@ -3439,8 +3404,8 @@ Example No.: ' . $params['copyrighttransferform']['example_no'] . '
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3454,7 +3419,7 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
We have received your Undertaking Form Application for the book
@@ -3464,8 +3429,8 @@ Example No.: ' . $params['undertakingform']['example_no'] . '
Best Wishes,
-!site_name Team,
-FOSSEE,IIT Bombay', array(
+!site_name Team
+FOSSEE, IIT Bombay', array(
'!site_name' => variable_get('site_name', ''),
'!user_name' => $user_data->name
))
@@ -3479,7 +3444,7 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
A Remark has been given.Please check your Contact Detail Form
@@ -3505,7 +3470,7 @@ FOSSEE,IIT Bombay', array(
));
$message['body'] = array(
'body' => t('
-Dear !user_name,
+Dear ' . $proposal_data->full_name . ',
We have Sent Cheque for the following book proposed