unsubscribe_user_all

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "unsubscribe_user_all".
... in unsubscribe_user_all.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<macro name="unsubscribe_user_all" requires="servlet">
     <n.node_page.>
         <n.set_local_user.get_user_from_id user_id="[n.get_parameter name='user'/]" />
         <n.set_local_subscription.page_node.subscription_for email="[n.local_user.user_email/]" />
        <n.if.is_submitted_form>
            <then>
                <n.if.equal value1="remove-subscription" value2="[n.action_parameter/]">
                    <then>
                        <n.page_node.unsub_descendants user="[n.local_user/]"/>
                        <n.redirect_to.subscription_removed_user_url/>
                    </then>
                </n.if.equal>
            </then>
        </n.if.is_submitted_form>
        <n.html>
             <head>
                <n.title.><t>Unsubscribe</t></n.title.>
                <n.main_title_css/>
            </head>
            <body>
                <n.local_user.profile_header/>
                <br/>
                <div class="shaded-bg-color rounded second-font main-title">
                    <t>Remove Subscription</t>
                </div>
                <div style="font-weight:bold;margin: 2em 0 1em">
                    <t>Do you really want to unsubscribe this user from <t.location><a href="[n.page_node.url/]"><n.page_node.subject/></a></t.location> and all lower levels?</t>
                </div>
    
                <n.unsubscription_form/>
            </body>
        </n.html>
    </n.node_page.>
</macro>