element_children

Definition

element_children($element)
includes/common.inc, line 2234

Description

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

Related topics

Namesort iconDescription
Input validationFunctions to validate user input.

Code

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

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.