All pastes #369180 Raw Edit

Anonymous

public text v1 · immutable
#369180 ·published 2007-02-23 17:11 UTC
rendered paste body
#
#  a simple cck decimal type can be added into a table when editing
#  by rendering the form input field like so:  
#
#  <?php print drupal_render($form['field_mynumeric_min']['0']['value']); ?>
#
#
#  How do I render a select list inside the table?  A sample select list is shown below.
#
#

    [field_iris_ctl] => Array
        (
            [#tree] => 1
            [key] => Array
                (
                    [#type] => select
                    [#title] => iris_ctl
                    [#default_value] => 1
                    [#multiple] => 
                    [#options] => Array
                        (
                            [0] => Fixed
                            [1] => Manual
                            [2] => DC Motor
                            [3] => VideoAI
                            [4] => Other
                        )

                    [#required] => 1
                    [#description] => What type of iris is this?
                    [#post] => Array
                        (
                        )

                    [#programmed] => 
                    [#tree] => 1
                    [#parents] => Array
                        (
                            [0] => field_iris_ctl
                            [1] => key
                        )

                    [#weight] => 0
                    [#processed] => 
                    [#attributes] => Array
                        (
                        )

                    [#input] => 1
                    [#name] => field_iris_ctl[key]
                    [#id] => edit-field-iris-ctl-key
                    [#value] => 1
                    [#sorted] => 1
                )

            [#weight] => 0
            [#post] => Array
                (
                )

            [#programmed] => 
            [#parents] => Array
                (
                    [0] => field_iris_ctl
                )

            [#processed] => 
            [#sorted] => 1
            [0] => Array
                (
                    [value] => 
                )

        )