codereview

Dec 15 2007

default_value

Everybody who once spent 5 minutes debugging drupal forms will spot the difference..

  1. $form['currency'] = array(
  2. '#type' => 'textfield',
  3. '#title' => t('currency'),
  4. '#size' => 60,
  5. '#maxlength' => 255,
  6. '#default_value' => $dateset->currency,
  7. '#description' =>t('currency')
  8. );

Looks an awfull lot like

  1. $form['currency'] = array(
  2. '#type' => 'textfield',
  3. '#title' => t('currency'),
  4. '#size' => 60,
  5. '#maxlength' => 255,
  6. '#value' => $dateset->currency,
  7. '#description' =>t('currency')
  8. );

Only the second one isn't much use in a form :)