summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992021-09-20 19:15:48 +0530
committerSaketh14992021-09-20 19:15:48 +0530
commit965b87e13b957c35fea360aca13a9a8ef47ae6cf (patch)
tree8cbe56627410693ecb06fe118cc8163005696350
parent6994a8aae7fa62a3de6ea62c6959a5cfaacd0962 (diff)
downloadfellowship_testimonials-965b87e13b957c35fea360aca13a9a8ef47ae6cf.tar.gz
fellowship_testimonials-965b87e13b957c35fea360aca13a9a8ef47ae6cf.tar.bz2
fellowship_testimonials-965b87e13b957c35fea360aca13a9a8ef47ae6cf.zip
Updating the interface for displaying messages
-rw-r--r--testimonials_edit.inc16
1 files changed, 9 insertions, 7 deletions
diff --git a/testimonials_edit.inc b/testimonials_edit.inc
index 0fc36f5..5da3705 100644
--- a/testimonials_edit.inc
+++ b/testimonials_edit.inc
@@ -262,11 +262,11 @@ function fellows_add_more_remove_one($form, &$form_state) {
$form_state['rebuild'] = TRUE;
}
- function fellowship_testimonials_edit_form_validate($form, &$form_state) {
+function fellowship_testimonials_edit_form_validate($form, &$form_state) {
// for future use
}
- function fellowship_testimonials_edit_form_submit($form, &$form_state) {
+function fellowship_testimonials_edit_form_submit($form, &$form_state) {
$v = $form_state['values'];
if($v['opt_text_or_video'] == 'V'){
$query = db_update('fellowship_testimonials');
@@ -304,18 +304,20 @@ function fellows_add_more_remove_one($form, &$form_state) {
'place' => $v['fellows_fieldset'][$i]['place']
));
$query->condition('f_id', $v['fellows_fieldset'][$i]['f_id']);
- $fellows_result = $query -> execute();
- if ($fellows_result != 0) {
+ $result = $query -> execute();
+ if ($result != 0) {
$fellowsupload++;
}
}
}
}
- if(!$result) {
+ /* if(!$result) {
drupal_set_message("Something went wrong, please try again.", "error");
- } else {
+ }
+ else {
drupal_set_message("Internship Experiences updated successfully", "status");
- }
+ }*/
+ drupal_set_message("Internship Experiences updated successfully", "status");
drupal_goto('internship-experiences/edit');
}