function multiselect_init in Multiselect 7
Implements hook_init().
File
- ./
multiselect.module, line 46 - Allows users to select multiple items in an easier way than the normal node-reference widget.
Code
function multiselect_init() {
$multiselect_widths = variable_get('multiselect_widths');
if (!empty($multiselect_widths)) {
drupal_add_js(array(
'multiselect' => array(
'widths' => $multiselect_widths,
),
), 'setting');
}
}