public function select2_library::options in Chosen 7.3
File
- plugins/
library/ select2_library.class.php, line 17
Class
- select2_library
- TODO: Documentation.
Code
public function options($default_values = array()) {
$form = array();
$form['minimum_single'] = array(
'#type' => 'select',
'#title' => t('Minimum number of options for single select'),
'#options' => drupal_map_assoc(array_merge(array(
'0' => t('Always Apply'),
), range(1, 25))),
'#default_value' => isset($default_values['minimum_single']) ? $default_values['minimum_single'] : 20,
'#description' => t('The minimum number of options to apply Chosen for single select fields. Example : choosing 10 will only apply Chosen if the number of options is greater or equal to 10.'),
);
return $form;
}