function element_child

element_child($key)

Checks if the key is a child.

File

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

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/element_child/7.x