summaryrefslogtreecommitdiff
path: root/textbook_companion.module
diff options
context:
space:
mode:
authorJayaram R Pai2014-07-16 15:29:08 +0530
committerJayaram R Pai2014-07-16 15:29:08 +0530
commit522d4bb92eb8b72e4763540f27070696530b05d0 (patch)
treed126956b81f7cedc594315af63ef3223e5e50a0f /textbook_companion.module
parentebc8d94c46b31f681e5796f32d7240f57116f128 (diff)
downloadscilab_textbook_companion-522d4bb92eb8b72e4763540f27070696530b05d0.tar.gz
scilab_textbook_companion-522d4bb92eb8b72e4763540f27070696530b05d0.tar.bz2
scilab_textbook_companion-522d4bb92eb8b72e4763540f27070696530b05d0.zip
beta - aicte_proposal
Diffstat (limited to 'textbook_companion.module')
-rwxr-xr-xtextbook_companion.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/textbook_companion.module b/textbook_companion.module
index 09e4499..da660d8 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -666,6 +666,7 @@ function textbook_companion_proposal_all() {
function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL)
{
+ global $user;
$form = array();
$form['imp_notice'] = array(
'#type' => 'item',
@@ -829,7 +830,7 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL)
'#size' => 30,
'#maxlength' => 25,
'#required' => TRUE,
- '#value' => $row1->isbn,
+ '#default_value' => $row1->isbn,
'#disabled' => ($row1->isbn?TRUE:FALSE),
);
$form['preference1']['publisher1'] = array(
@@ -889,7 +890,7 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL)
'#size' => 30,
'#maxlength' => 25,
'#required' => TRUE,
- '#value' => $row2->isbn,
+ '#default_value' => $row2->isbn,
'#disabled' => ($row2->isbn?TRUE:FALSE),
);
$form['preference2']['publisher2'] = array(
@@ -949,7 +950,7 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL)
'#size' => 30,
'#maxlength' => 25,
'#required' => TRUE,
- '#value' => $row3->isbn,
+ '#default_value' => $row3->isbn,
'#disabled' => ($row3->isbn?TRUE:FALSE),
);
$form['preference3']['publisher3'] = array(