diff options
author | Sashi20 | 2017-09-22 10:38:45 +0530 |
---|---|---|
committer | Sashi20 | 2017-09-22 10:38:45 +0530 |
commit | b2c9f4ae28d5dbc48167564a27695a9a32d1756b (patch) | |
tree | 3fac6076db1767207ca8158c55d6ef9236053993 /proposal.inc | |
parent | 7056993b2fc93c6e864fe0fe2e423491c06e880b (diff) | |
download | dwsim_flowsheet-b2c9f4ae28d5dbc48167564a27695a9a32d1756b.tar.gz dwsim_flowsheet-b2c9f4ae28d5dbc48167564a27695a9a32d1756b.tar.bz2 dwsim_flowsheet-b2c9f4ae28d5dbc48167564a27695a9a32d1756b.zip |
Reference field added to proposal form
Diffstat (limited to 'proposal.inc')
-rwxr-xr-x | proposal.inc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/proposal.inc b/proposal.inc index 846238e..9d9dec8 100755 --- a/proposal.inc +++ b/proposal.inc @@ -244,6 +244,15 @@ function dwsim_flowsheet_proposal_form($form, &$form_state, $no_js_use = FALSE) '#description' => t('Maximum character limit is 250'), '#required' => TRUE ); + $form['reference'] = array( + '#type' => 'textfield', + '#title' => t('Reference'), + '#size' => 250, + '#required' => TRUE, + '#attributes' => array( + 'placeholder' => 'Enter reference' + ) + ); $form['version'] = array( '#type' => 'select', '#title' => t('Version'), @@ -638,7 +647,8 @@ function dwsim_flowsheet_proposal_form_submit($form, &$form_state) creation_date, approval_date, directory_name, - user_defined_compound_filepath + user_defined_compound_filepath, + reference ) VALUES ( :uid, @@ -666,7 +676,8 @@ function dwsim_flowsheet_proposal_form_submit($form, &$form_state) :creation_date, :approval_date, :directory_name, - :user_defined_compound_filepath + :user_defined_compound_filepath, + :reference )"; $args = array( ":uid" => $user->uid, @@ -694,7 +705,8 @@ function dwsim_flowsheet_proposal_form_submit($form, &$form_state) ":creation_date" => time(), ":approval_date" => 0, ":directory_name" => $directory_name, - ":user_defined_compound_filepath" => "NULL" + ":user_defined_compound_filepath" => "NULL", + ":reference" => $v['reference'] ); //var_dump($args);die; $proposal_id = db_query($result, $args, array( |