function _wfm_get_min_items in Webform Multiple (WFM) 7
Get the minimum number of items of a component.
2 calls to _wfm_get_min_items()
- wfm_form_webform_component_edit_form_alter in ./
wfm.module - Implements hook_form_FORM_ID_alter().
- _wfm_process_elements in ./
wfm.module - Process an element in the Webform to allow multiple values.
File
- ./
wfm.module, line 774 - Main module file for Webform Multiple (WFM).
Code
function _wfm_get_min_items(array $component) {
$min_items = 1;
if (isset($component['extra']['wfm_min_items'])) {
$min_items = (int) $component['extra']['wfm_min_items'];
}
return $min_items;
}