Same name and namespace in other branches
  1. 4.7.x includes/form.inc \element_child()
  2. 5.x includes/common.inc \element_child()
  3. 7.x includes/common.inc \element_child()

Check if the key is a child.

1 string reference to 'element_child'
element_children in includes/common.inc
Get keys of a structured array tree element that are not properties (i.e., do not begin with '#').

File

includes/common.inc, line 3119
Common functions that many Drupal modules will need to reference.

Code

function element_child($key) {
  return !isset($key[0]) || $key[0] != '#';
}