process_unsubscription

NAML documentation   Watch a video
   Usages of this macro
... in process_unsubscription.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
<override_macro name="process_unsubscription">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.unsubscribe_email_parameter
Macro
Requires: servlet
>
        <then>
            <n.set_local_subscription
Macro
Parameters: subscription
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subscription_for
Binary
Namespace: NodeNamespace
Parameters: do, email
 email="[n.unsubscribe_email_parameter
Macro
Requires: servlet
/]" />
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.local_subscription
Macro
Parameters: do
.is_subscribed
Binary
Namespace: SubscriptionNamespace
>
                <then>
                    <n.local_subscription
Macro
Parameters: do
.remove
Binary
Namespace: SubscriptionNamespace
/>
                    <n.comment
Macro
Parameters: text
.>removed unsubscription reminder</n.comment.>
                </then>
            </n.if.local_subscription.is_subscribed>
        </then>
    </n.if.not.is_null.unsubscribe_email_parameter>
</override_macro>
Overrides default macro
... in manage_subscribers.naml
121
122
123
124
125
126
127
128
129
130
131
132
133
<macro name="process_unsubscription">
    <n.if.not.is_null.unsubscribe_email_parameter>
        <then>
            <n.set_local_subscription.page_node.subscription_for email="[n.unsubscribe_email_parameter/]" />
            <n.if.local_subscription.is_subscribed>
                <then>
                    <n.local_subscription.remove/>
                    <n.local_subscription.send_unsubscription_reminder/>
                </then>
            </n.if.local_subscription.is_subscribed>
        </then>
    </n.if.not.is_null.unsubscribe_email_parameter>
</macro>