Same name and namespace in other branches
  1. 5.x includes/common.inc \element_children()
  2. 6.x includes/common.inc \element_children()
  3. 7.x includes/common.inc \element_children()

Get keys of a form tree element that are not properties (i.e., do not begin with '#').

Related topics

1 call to element_children()
form_render in includes/form.inc
Renders a HTML form given a form tree. Recursively iterates over each of the form elements, generating HTML code. This function is usually called from within a theme. To render a form from within a module, use drupal_get_form().

File

includes/form.inc, line 40

Code

function element_children($element) {
  return array_filter(array_keys((array) $element), 'element_child');
}