All pastes #255594 Raw Edit

fapi

public text v1 · immutable
#255594 ·published 2006-11-23 04:06 UTC
rendered paste body
$form:

    [advanced] => Array
        (
            [#type] => fieldset
            [#title] => Advanced
            [#description] => These settings are for advanced tweaking per feed.
            [#collapsible] => 1
            [#collapsed] => 
            [#tree] => 1
            [update_items] => Array
                (
                    [#type] => checkbox
                    [#title] => Update news items
                    [#description] => If the same news item is found in the feed on the next update the contents will overwrite the previous version stored here.
                    [#default_value] => 1
                )

            [processor] => Array
                (
                    [#type] => select
                    [#title] => Processor
                    [#description] => Each feed can have it's items generated by a different processor. This allows you to generate different types of content per feed - such as nodes or traditional aggregator items.
                    [#options] => Array
                        (
                            [feedaggregator] => Aggregator Items
                            [feedaggregator_node] => Nodes
                        )

                    [#default_value] => feedaggregator_node
                    [#size] => 1
                    [#weight] => -20
                )

            [author] => Array
                (
                    [#type] => textfield
                    [#title] => Authored by
                    [#maxlength] => 60
                    [#autocomplete_path] => user/autocomplete
                    [#default_value] => 
                    [#weight] => -1
                    [#description] => Assigns created nodes to a user. Leave blank for <em>Anonymous</em>.
                )

            [format] => Array
                (
                    [#type] => fieldset
                    [#title] => Input format
                    [#collapsible] => 1
                    [#collapsed] => 
                    [#weight] => 
                    [#validate] => Array
                        (
                            [filter_form_validate] => Array
                                (
                                )

                        )

                    [1] => Array
                        (
                            [#type] => radio
                            [#title] => Filtered HTML
                            [#default_value] => 1
                            [#return_value] => 1
                            [#parents] => Array
                                (
                                    [0] => format
                                )

                            [#description] => <ul class="tips"><li>Allowed HTML tags: &lt;a&gt; &lt;em&gt; &lt;strong&gt; &lt;cite&gt; &lt;code&gt; &lt;ul&gt; &lt;ol&gt; &lt;li&gt; &lt;dl&gt; &lt;dt&gt; &lt;dd&gt; &lt;img&gt;</li><li>Lines and paragraphs break automatically.</li></ul>
                        )

                    [2] => Array
                        (
                            [#type] => radio
                            [#title] => PHP code
                            [#default_value] => 1
                            [#return_value] => 2
                            [#parents] => Array
                                (
                                    [0] => format
                                )

                            [#description] => <ul class="tips"><li>You may post PHP code. You should include &lt;?php ?&gt; tags.</li></ul>
                        )

                    [3] => Array
                        (
                            [#type] => radio
                            [#title] => Full HTML
                            [#default_value] => 1
                            [#return_value] => 3
                            [#parents] => Array
                                (
                                    [0] => format
                                )

                            [#description] => <ul class="tips"><li>Lines and paragraphs break automatically.</li></ul>
                        )

                    [4] => Array
                        (
                            [#type] => markup
                            [#value] => <a href="/scratch/?q=filter/tips">More information about formatting options</a>
                        )

                )

        )

    [submit] => Array
        (
            [#type] => submit
            [#value] => Submit
            [#weight] => 2
        )



result from submission of form:

Array
(
    [advanced] => Array
        (
            [update_items] => 1
            [processor] => feedaggregator_node
            [author] => 
        )

    [format] => 3
    [submit] => Submit
    [fid] => 13
    [form_id] => feedmanager_form_feed
)