save_new_poll

   Usages of this macro
... in poll.naml
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<macro name="save_new_poll" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_empty
Binary
Namespace: BasicNamespace
Parameters: value
.poll_question_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
>
        <then>
            <n.set_poll
Binary
Namespace: NodeNamespaceExt
Parameters: poll_show_results_before_end, poll_allow_vote_change, poll_max_choices, do, poll_options, poll_question, poll_days_left, poll_show_results_before_vote
>
                <poll_question><n.poll_question_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></poll_question>
                <poll_options><n.get_parameter_values
Binary
Namespace: RequestNamespace
Parameters: name, do
 name="poll_option"/></poll_options>
                <poll_max_choices>
                    <n.get_int
Binary
Namespace: NabbleNamespace
Parameters: exception, default, int
. default="1" exception="max_choices_field_not_integer"><n.poll_max_choices_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></n.get_int.>
                </poll_max_choices>
                <poll_days_left>
                    <n.get_int
Binary
Namespace: NabbleNamespace
Parameters: exception, default, int
. default="0" exception="days_field_not_integer"><n.poll_days_left_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></n.get_int.>
                </poll_days_left>
                <poll_allow_vote_change><n.poll_allow_vote_change_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></poll_allow_vote_change>
                <poll_show_results_before_vote><n.poll_show_results_before_vote_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></poll_show_results_before_vote>
                <poll_show_results_before_end><n.poll_show_results_before_end_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></poll_show_results_before_end>
            </n.set_poll>
        </then>
    </n.if.not.is_empty.poll_question_field.value>
</macro>