如何以节点形式从字段组获取/呈现单个字段-Drupal

时间:2018-11-04 13:09:04

标签: drupal drupal-7 drupal-forms drupal-nodes drupal-content-types

我创建了带有字段组的表单。下面是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] => 
            )
         )

如何分别渲染/显示字段组元素,而不是渲染整个组。例如:如何在我的custom-node-form.tpl.php

中呈现/显示字段field_can_you_accept_xml_format_

0 个答案:

没有答案