You are here

function element_children in Drupal 4

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

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

Related topics

17 calls to element_children()
filter_form_validate in modules/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.
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().
theme_aggregator_page_list in modules/aggregator.module
theme_block_admin_display in modules/block.module
Theme main block administration form submission.

... See full list

File

includes/form.inc, line 40

Code

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