element_children

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/common.inc, строка 2352

Версии
5 – 6
element_children($element)

Возвращает ключи структурированного массива, которые не являются атрибутами (т.е. не начинаются на '#').

Связанные темы

▾ 23 функции вызывают element_children()

color_form_alter in modules/color/color.module
Реализация hook_form_alter().
drupal_render in includes/common.inc
Формирует HTML-код из структурированного массива.
filter_form_validate in modules/filter/filter.module
form_builder in includes/form.inc
Adds some required properties to each form element, which are used internally in the form API. This function also automatically assigns the value property from the $edit array, provided the element doesn't already have an assigned value.
multipage_form_set_element_visibility in developer/examples/multipage_form_example.module
Set an element's visibility. Elements are gnerally changed to hidden elements. Visibility may be set and reset any number of times.
theme_aggregator_page_list in modules/aggregator/aggregator.module
theme_block_admin_display in modules/block/block.module
Theme main block administration form submission.
theme_book_admin_table in modules/book/book.module
theme_color_scheme_form in modules/color/color.module
Theme color form.
theme_comment_admin_overview in modules/comment/comment.module
Темизирует форму комментирования администратора.
theme_filter_admin_order in modules/filter/filter.module
Темизирует форму конфигурации порядка фильтров.
theme_multipage_form_example_node_form in developer/examples/multipage_form_example.module
theme_node_admin_nodes in modules/node/node.module
Theme node administration overview.
theme_node_filters in modules/node/node.module
Theme node administration filter selector.
theme_node_search_admin in modules/node/node.module
theme_system_modules_uninstall in modules/system/system.module
Темизирует таблицу отключенных на данный момент модулей.
theme_system_themes in modules/system/system.module
theme_system_theme_select_form in modules/system/system.module
Темизирует форму выбора темы.
theme_upload_form_current in modules/upload/upload.module
Темизирует список прикрепленных файлов (вложений).
theme_user_admin_account in modules/user/user.module
Theme user administration overview.
theme_user_admin_perm in modules/user/user.module
Темизирует страницу управления разрешениями.
theme_user_filters in modules/user/user.module
Theme user administration filter selector.
_form_validate in includes/form.inc
Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators.

Код

<?php
function element_children($element) {
  return array_filter(array_keys((array) $element), 'element_child');
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему