function _insert_add_process in Insert 8.2
Returns an array with all paths removed, except for those containing the key '#insert'.
Parameters
array &$elements:
1 call to _insert_add_process()
- insert_form_alter in ./
insert.module - Implements hook_form_alter().
File
- ./
insert.module, line 111
Code
function _insert_add_process(array &$elements) {
if (isset($elements['#insert'])) {
$elements['#process'][] = '_insert_field_process';
}
$keys = Element::children($elements);
foreach ($keys as $key) {
_insert_add_process($elements[$key]);
}
}