You are here

function activeedit_convert_submits in Javascript Tools 5

1 call to activeedit_convert_submits()
activeedit_render in activeedit/activeedit.module

File

activeedit/activeedit.module, line 134

Code

function activeedit_convert_submits(&$form, $submit_text) {
  foreach (element_children($form) as $key) {
    if ($form[$key]['#type'] && in_array($form[$key]['#type'], array(
      'button',
      'submit',
    )) && $form[$key]['#value'] && $form[$key]['#value'] != $submit_text) {
      unset($form[$key]);
    }
    activeedit_convert_submits($form[$key], $submit_text);
  }
}