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

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

1 call to element_children()
drupal_render in includes/common.inc
Renders HTML given a structured array tree.

File

includes/common.inc, line 3126
Common functions that many Drupal modules will need to reference.

Code

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