element_children

  1. drupal
    1. 4.7 form.inc
    2. 5
    3. 6 common.inc
    4. 7 common.inc
Versions
4.7 – 6 element_children($element)
7 element_children(&$elements, $sort = FALSE)

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

Related topics

▾ 23 functions call 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.
multipage_form_set_element_visibility in developer/examples/multipage_form_example.module
Set an element's visibility. Elements are gnerally changed to hidden elements. Visibility may be set and reset any number of times.
theme_aggregator_page_list in modules/aggregator/aggregator.module
theme_block_admin_display in modules/block/block.module
Theme main block administration form submission.
theme_book_admin_table in modules/book/book.module
theme_color_scheme_form in modules/color/color.module
Theme color form.
theme_comment_admin_overview in modules/comment/comment.module
theme_filter_admin_order in modules/filter/filter.module
Theme filter order configuration form.
theme_multipage_form_example_node_form in developer/examples/multipage_form_example.module
theme_node_admin_nodes in modules/node/node.module
Theme node administration overview.
theme_node_filters in modules/node/node.module
Theme node administration filter selector.
theme_node_search_admin in modules/node/node.module
theme_system_modules_uninstall in modules/system/system.module
Themes a table of currently disabled modules.
theme_system_themes in modules/system/system.module
theme_system_theme_select_form in modules/system/system.module
theme_upload_form_current in modules/upload/upload.module
Theme the attachments list.
theme_user_admin_account in modules/user/user.module
Theme user administration overview.
theme_user_admin_perm in modules/user/user.module
theme_user_filters in modules/user/user.module
Theme user administration filter selector.
_form_validate in includes/form.inc
Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators.

Code

includes/common.inc, line 2377

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