summaryrefslogtreecommitdiff
path: root/manage_proposal.inc
diff options
context:
space:
mode:
authorprashantsinalkar2017-06-09 10:29:00 +0530
committerprashantsinalkar2017-06-09 10:29:00 +0530
commit859911de8498d3e883ffc86046440d09a6d069c6 (patch)
tree207777d2ba6460fa660a494c938c7b8b0675b2ed /manage_proposal.inc
parente3a1bb3a25ed745d039ebf0bb328cc9cd2745af9 (diff)
parentdcfeded5aad935c101fd6a3d888cf7b5fbb9230e (diff)
downloaddwsim_flowsheet-859911de8498d3e883ffc86046440d09a6d069c6.tar.gz
dwsim_flowsheet-859911de8498d3e883ffc86046440d09a6d069c6.tar.bz2
dwsim_flowsheet-859911de8498d3e883ffc86046440d09a6d069c6.zip
Merge branch 'drupal_7.x' of https://github.com/FOSSEE/dwsim_flowsheet into drupal_7.x
Diffstat (limited to 'manage_proposal.inc')
-rwxr-xr-xmanage_proposal.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc
index 4e05856..6b70e8a 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -883,6 +883,16 @@ function dwsim_flowsheet_proposal_edit_form($form, &$form_state)
'#required' => TRUE,
'#default_value' => $proposal_data->project_title
);
+ $form['reference'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Reference'),
+ '#required' => TRUE,
+ '#size' => 10000,
+ '#attributes' => array(
+ 'placeholder' => 'Links of must be provided....'
+ )
+ '#default_value' => $proposal_data->reference
+ );
$form['delete_proposal'] = array(
'#type' => 'checkbox',
'#title' => t('Delete Proposal')
@@ -1012,6 +1022,7 @@ function dwsim_flowsheet_proposal_edit_form_submit($form, &$form_state)
pincode=:pincode,
state=:state,
project_title=:project_title,
+ reference=:reference,
directory_name=:directory_name
WHERE id=:proposal_id";
$args = array(
@@ -1022,6 +1033,7 @@ function dwsim_flowsheet_proposal_edit_form_submit($form, &$form_state)
':pincode' => $v['pincode'],
':state' => $v['all_state'],
':project_title' => $project_title,
+ ':reference' => $v['reference'],
':directory_name' => $directory_name,
':proposal_id' => $proposal_id
);