You are here

function element_children in Drupal 5

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

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

Related topics

21 calls to element_children()
color_form_alter in modules/color/color.module
Implementation of hook_form_alter().
drupal_render in includes/common.inc
Renders HTML given a structured array tree. Recursively iterates over each of the array elements, generating HTML code. This function is usually called from within a another function, like drupal_get_form() or node_view().
filter_form_validate in modules/filter/filter.module
form_builder in includes/form.inc
Adds some required properties to each form element, which are used internally in the form API. This function also automatically assigns the value property from the $edit array, provided the element doesn't already have an assigned value.
theme_aggregator_page_list in modules/aggregator/aggregator.module

... See full list

File

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

Code

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