element_children

Versions
4.7 – 6
element_children($element)
7
element_children(&$elements, $sort = FALSE)

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

Related topics

▾ 19 functions call 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().
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.module
theme_block_admin_display in modules/block.module
Theme main block administration form submission.
theme_book_admin_table in modules/book.module
theme_comment_admin_overview in modules/comment.module
theme_filter_admin_order in modules/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.module
Theme node administration overview.
theme_node_filters in modules/node.module
Theme node administraton filter selector.
theme_node_search_admin in modules/node.module
theme_system_modules in modules/system.module
theme_system_themes in modules/system.module
theme_system_theme_select_form in modules/system.module
theme_upload_form_current in modules/upload.module
Theme the attachments list.
theme_user_admin_perm in modules/user.module
_form_validate in includes/form.inc

Code

includes/form.inc, line 40

<?php
function element_children($element) {
  return array_filter(array_keys((array) $element), 'element_child');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.