Fix for Fix for the multiple select #default_value

  1. $form['mylist']  = array(
  2.                 '#type' => 'select',
  3.                 '#title' => t('Select From List'),
  4.                 '#options' => array(
  5.                     0=>'A',
  6.                     1=>'B',
  7.                     2=>'C',
  8.                     3=>'D',
  9.                 ),
  10.                 '#multiple' => true,
  11.                 '#size' => 3,
  12.                 '#default_value' => array(
  13.                     1,
  14.                     2
  15.                 ),
  16.         );

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.