function rules_ui_list_textarea_after_build
FAPI after build callback for specifying a list of values.
Turns the textual value in an array by splitting the text in chunks using the delimiter set at $element['#delimiter'].
1 string reference to 'rules_ui_list_textarea_after_build'
- RulesDataUIListText::inputForm in ui/
ui.data.inc - Implements RulesDataDirectInputFormInterface::inputForm().
File
-
ui/
ui.forms.inc, line 862
Code
function rules_ui_list_textarea_after_build($element, &$form_state) {
$element['#value'] = $element['#value'] ? explode($element['#delimiter'], $element['#value']) : array();
$element['#value'] = array_map('trim', $element['#value']);
form_set_value($element, $element['#value'], $form_state);
return $element;
}