summaryrefslogtreecommitdiff
path: root/textbook_companion.module
diff options
context:
space:
mode:
authorSashi202019-10-03 12:22:42 +0530
committerGitHub2019-10-03 12:22:42 +0530
commit4b6d047ccbb49ca38da31a39489b5a92603286b6 (patch)
treeb71aa7e8f287f24d9899c941a3153d7dd24c78e7 /textbook_companion.module
parentb9b8768dc69765d111e1bc950366655320751c30 (diff)
parentd62c7d56e20610f23ac6631fc2b0ae020b155e66 (diff)
downloadopenmodelica_textbook_companion-4b6d047ccbb49ca38da31a39489b5a92603286b6.tar.gz
openmodelica_textbook_companion-4b6d047ccbb49ca38da31a39489b5a92603286b6.tar.bz2
openmodelica_textbook_companion-4b6d047ccbb49ca38da31a39489b5a92603286b6.zip
Merge pull request #10 from Sashi20/drupal_7.x
Display exp no in the error message on empty reason for disapproval
Diffstat (limited to 'textbook_companion.module')
-rwxr-xr-xtextbook_companion.module121
1 files changed, 0 insertions, 121 deletions
diff --git a/textbook_companion.module b/textbook_companion.module
index 9ca429b..a40fb3b 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -2078,127 +2078,6 @@ function book_proposal_form($form, &$form_state)
'#required' => TRUE
//'#value' => $row1->year,
);
- /*$form['preference2'] = array(
- '#type' => 'fieldset',
- '#title' => t('Book Preference 2'),
- '#collapsible' => TRUE,
- '#collapsed' => FALSE
- );
- $form['preference2']['book2'] = array(
- '#type' => 'textfield',
- '#title' => t('Title of the book'),
- '#size' => 30,
- '#maxlength' => 100,
- '#required' => TRUE
- //'#value' => $row2->book,
- //'#disabled' => ($row2->book?TRUE:FALSE),
- );
- $form['preference2']['author2'] = array(
- '#type' => 'textfield',
- '#title' => t('Author Name'),
- '#size' => 30,
- '#maxlength' => 100,
- '#required' => TRUE
- //'#value' => $row2->author,
- //'#disabled' => ($row2->author?TRUE:FALSE),
- );
- $form['preference2']['isbn2'] = array(
- '#type' => 'textfield',
- '#title' => t('ISBN No'),
- '#size' => 30,
- '#maxlength' => 25,
- '#required' => TRUE
- // '#value' => $row2->isbn,
- // '#disabled' => ($row2->isbn?TRUE:FALSE),
- );
- $form['preference2']['publisher2'] = array(
- '#type' => 'textfield',
- '#title' => t('Publisher & Place'),
- '#size' => 30,
- '#maxlength' => 50,
- '#required' => TRUE
- //'#value' => $row2->publisher,
- );
- $form['preference2']['edition2'] = array(
- '#type' => 'textfield',
- '#title' => t('Edition'),
- '#size' => 4,
- '#maxlength' => 2,
- '#required' => TRUE
- //'#value' => $row2->edition,
- );
- $form['preference2']['year2'] = array(
- '#type' => 'textfield',
- '#title' => t('Year of pulication'),
- '#size' => 4,
- '#maxlength' => 4,
- '#required' => TRUE
- //'#value' => $row2->year,
- );
- $form['preference3'] = array(
- '#type' => 'fieldset',
- '#title' => t('Book Preference 3'),
- '#collapsible' => TRUE,
- '#collapsed' => FALSE
- );
- $form['preference3']['book3'] = array(
- '#type' => 'textfield',
- '#title' => t('Title of the book'),
- '#size' => 30,
- '#maxlength' => 100,
- '#required' => TRUE
- //'#value' => $row3->book,
- //'#disabled' => ($row3->book?TRUE:FALSE),
- );
- $form['preference3']['author3'] = array(
- '#type' => 'textfield',
- '#title' => t('Author Name'),
- '#size' => 30,
- '#maxlength' => 100,
- '#required' => TRUE
- //'#value' => $row3->author,
- // '#disabled' => ($row3->author?TRUE:FALSE),
- );
- $form['preference3']['isbn3'] = array(
- '#type' => 'textfield',
- '#title' => t('ISBN No'),
- '#size' => 30,
- '#maxlength' => 25,
- '#required' => TRUE
- //'#value' => $row3->isbn,
- //'#disabled' => ($row3->isbn?TRUE:FALSE),
- );
- $form['preference3']['publisher3'] = array(
- '#type' => 'textfield',
- '#title' => t('Publisher & Place'),
- '#size' => 30,
- '#maxlength' => 50,
- '#required' => TRUE
- // '#value' => $row3->publisher,
- );
- $form['preference3']['edition3'] = array(
- '#type' => 'textfield',
- '#title' => t('Edition'),
- '#size' => 4,
- '#maxlength' => 2,
- '#required' => TRUE
- //'#value' => $row3->edition,
- );
- $form['preference3']['year3'] = array(
- '#type' => 'textfield',
- '#title' => t('Year of pulication'),
- '#size' => 4,
- '#maxlength' => 4,
- '#required' => TRUE
- //'#value' => $row3->year,
- );
- /*$form['termconditions'] = array(
- '#type' => 'checkboxes',
- '#title' => t('Terms And Conditions'),
- '#options' => array(
- 'status' => t('<a href="term-and-conditions" target="_blank">I agree to the Terms and Conditions</a>'),),
- '#required' => TRUE,
- );*/
$form['samplefile'] = array(
'#type' => 'fieldset',
'#title' => t('Sample Source Files'),