Unnamed
public text v1 · immutable<?php
function module_form_alter($form_id, &$form) {
module_form_recurse($form, $form_id);
}
function module_form_recurse(&$element, $form_id) {
if(isset($element['#type']) && $element['#type'] == 'yourtype') {
$element['#process']['function_name'] = array($form_id);
}
foreach(element_children($element) as $key) {
module_form_recurse($element[$key], $form_id);
}
}