You are here

function element_children in Drupal 6

Same name and namespace in other branches
  1. 4 includes/form.inc \element_children()
  2. 5 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 '#').

37 calls to element_children()
book_admin_edit_submit in modules/book/book.admin.inc
Handle submission of the book administrative page form.
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.
filter_form_validate in modules/filter/filter.module
Validation callback for filter elements in a form.
form_builder in includes/form.inc
Walk through the structured form array, adding any required properties to each element and mapping the incoming $_POST data to the proper elements.

... See full list

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');
}