Multiselect widget

Provide **Multiselect widget** (form element) for developer:

<?php
  $form
['select1'] = array(
   
'#type' => 'fapi_multiselect',
   
'#title' => 'Widget title',
   
'#required' => TRUE,
   
'#options' => array('Option 1', 'Option 2', '...'),
   
'#default_value' => array(),
  );
?>

Drupal 7, please use Multiselect module.

Project Information

Downloads