Как получить / отобразить одно поле из группы полей в форме узла - Drupal - PullRequest
0 голосов
/ 04 ноября 2018

Я создал форму с группами полей. Ниже приведен вывод print_r ($ form);

 [#groups] => Array
    (
        [group_systems] => stdClass Object
            (
                [id] => 4
                [identifier] => group_systems|node|application|form
                [group_name] => group_systems
                [entity_type] => node
                [bundle] => application
                [mode] => form
                [parent_name] => 
                [table] => field_group
                [type] => Normal
                [export_type] => 1
                [disabled] => 
                [label] => Systems
                [weight] => 4
                [children] => Array
                    (
                        [0] => field_can_you_accept_xml_format_
                        [1] => field_have_you_reviewed_the_shut
                        [2] => field_what_is_the_level_of_effor
                        [3] => field_is_there_internal_it_suppo
                        [4] => field_what_is_your_incoming_band
                        [5] => field_is_there_a_redundancy_reco
                        [6] => field_do_you_have_a_test_environ
                    )

                [format_type] => tab
                [format_settings] => Array
                    (
                        [formatter] => 
                        [instance_settings] => Array
                            (
                                [classes] => 
                                [id] => 
                                [description] => 
                                [required_fields] => 1
                            )

                    )

                [array_parents] => Array
                    (
                        [0] => group_systems
                    )

                [collapsible] => 1
                [collapsed] => 
                [classes] => collapsible required-fields
                [description] => 
            )
         )

Как отображать / отображать элементы группы полей индивидуально, а не отображать полную группу. Например: как отобразить / отобразить поле field_can_you_accept_xml_format_ в моем custom-node-form.tpl.php

...