| 5 common.inc | element_children($element) |
| 6 common.inc | element_children( |
| 7 common.inc | element_children(&$elements, $sort = FALSE) |
| 8 common.inc | element_children(&$elements, $sort = FALSE) |
Get keys of a structured array tree element that are not properties (i.e., do not begin with '#').
File
- includes/
common.inc, line 3081 - Common functions that many Drupal modules will need to reference.
Code
<?php
function element_children($element) {
return array_filter(array_keys((array) $element), 'element_child');
}
?> Login or register to post comments
Comments
The idea in using
The idea in using element_children() is that I would haven't to go hunting down dead-end branches, thereby increasing performance?