You are here

function element_child in Drupal 7

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

Checks if the key is a child.

2 calls to element_child()
theme_locale_languages_configure_form in modules/locale/locale.admin.inc
Returns HTML for a language configuration form.
theme_locale_languages_overview_form in modules/locale/locale.admin.inc
Returns HTML for the language overview form.
1 string reference to 'element_child'
file_ajax_upload in modules/file/file.module
Menu callback; Shared Ajax callback for file uploads and deletions.

File

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

Code

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