diff options
author | Sashi20 | 2019-06-11 16:00:02 +0530 |
---|---|---|
committer | Sashi20 | 2019-06-11 16:00:02 +0530 |
commit | fd1e49bebd2df0e5dbae7022fefbd26598082747 (patch) | |
tree | 72608a795ffb51f340f4294145625525a9e0460f | |
parent | 1235e78dac2bbd96b024451f43ce109dd930b2f2 (diff) | |
download | om_flowsheet-fd1e49bebd2df0e5dbae7022fefbd26598082747.tar.gz om_flowsheet-fd1e49bebd2df0e5dbae7022fefbd26598082747.tar.bz2 om_flowsheet-fd1e49bebd2df0e5dbae7022fefbd26598082747.zip |
Modify goto urls
-rwxr-xr-x | om_flowsheet.module | 2 | ||||
-rwxr-xr-x | proposal.inc | 4 | ||||
-rwxr-xr-x | upload_code.inc | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/om_flowsheet.module b/om_flowsheet.module index bce14a0..bab1740 100755 --- a/om_flowsheet.module +++ b/om_flowsheet.module @@ -621,7 +621,7 @@ function om_flowsheet_get_proposal() if (!$proposal_data) { drupal_set_message("You do not have any approved om Flowsheet proposal. Please propose the flowsheet proposal", 'error'); - drupal_goto(''); + drupal_goto('chemical/flowsheeting-project'); } //!$proposal_data switch ($proposal_data->approval_status) { diff --git a/proposal.inc b/proposal.inc index 40af71f..0516b46 100755 --- a/proposal.inc +++ b/proposal.inc @@ -47,7 +47,7 @@ function om_flowsheet_proposal_form($form, &$form_state, $no_js_use = FALSE) if ($proposal_data->approval_status == 0 || $proposal_data->approval_status == 1) { drupal_set_message(t('We have already received your proposal.'), 'status'); - drupal_goto(''); + drupal_goto('chemical/flowsheeting-project'); return; } //$proposal_data->approval_status == 0 || $proposal_data->approval_status == 1 } //$proposal_data @@ -677,5 +677,5 @@ function om_flowsheet_proposal_form_submit($form, &$form_state) if (!drupal_mail('om_flowsheet', 'om_flowsheet_proposal_received', $email_to, user_preferred_language($user), $params, $form, TRUE)) drupal_set_message('Error sending email message.', 'error'); drupal_set_message(t('We have received your OpenModelica Flowsheeting proposal. We will get back to you soon.'), 'status'); - drupal_goto(''); + drupal_goto('chemical/flowsheeting-project'); } diff --git a/upload_code.inc b/upload_code.inc index 46cf993..e503d7a 100755 --- a/upload_code.inc +++ b/upload_code.inc @@ -7,7 +7,7 @@ function om_flowsheet_abstract() $proposal_data = om_flowsheet_get_proposal(); if (!$proposal_data) { - drupal_goto(''); + drupal_goto('chemical/flowsheeting-project'); return; } //!$proposal_data //$return_html .= l('Upload abstract', 'flowsheeting-project/abstract-code/upload') . '<br />'; @@ -453,7 +453,7 @@ function om_flowsheet_upload_abstract_code_form_submit($form, &$form_state) $proposal_id = $proposal_data->id; if (!$proposal_data) { - drupal_goto(''); + drupal_goto('chemical/flowsheeting-project'); return; } //!$proposal_data $proposal_id = $proposal_data->id; |