From b31cf3a933222afcafe0c9e9ada387c5a8c20dc5 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Thu, 17 Jul 2014 11:27:38 +0530 Subject: made edition and year editable - aicte --- textbook_companion.module | 6 ------ 1 file changed, 6 deletions(-) diff --git a/textbook_companion.module b/textbook_companion.module index e4e1a0e..26aa4aa 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -873,7 +873,6 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL) '#maxlength' => 2, '#required' => TRUE, '#value' => $row1->edition, - '#disabled' => ($row1->edition?TRUE:FALSE), ); $form['preference1']['year1'] = array( '#type' => 'textfield', @@ -882,7 +881,6 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL) '#maxlength' => 4, '#required' => TRUE, '#value' => $row1->year, - '#disabled' => ($row1->year?TRUE:FALSE), ); $form['preference2'] = array( '#type' => 'fieldset', @@ -933,7 +931,6 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL) '#maxlength' => 2, '#required' => TRUE, '#value' => $row2->edition, - '#disabled' => ($row2->edition?TRUE:FALSE), ); $form['preference2']['year2'] = array( '#type' => 'textfield', @@ -942,7 +939,6 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL) '#maxlength' => 4, '#required' => TRUE, '#value' => $row2->year, - '#disabled' => ($row2->year?TRUE:FALSE), ); $form['preference3'] = array( '#type' => 'fieldset', @@ -993,7 +989,6 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL) '#maxlength' => 2, '#required' => TRUE, '#value' => $row3->edition, - '#disabled' => ($row3->edition?TRUE:FALSE), ); $form['preference3']['year3'] = array( '#type' => 'textfield', @@ -1002,7 +997,6 @@ function book_proposal_form($form_state, $row1=NULL, $row2=NULL, $row3=NULL) '#maxlength' => 4, '#required' => TRUE, '#value' => $row3->year, - '#disabled' => ($row3->year?TRUE:FALSE), ); $form['termconditions'] = array( '#type' => 'checkboxes', -- cgit