should_get_instant_mail

NAML documentation   Watch a video
   Usages of this macro
... in should_get_instant_mail.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
<override_macro name="should_get_instant_mail" requires="user,node_page" >
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
/>
    <n.comment
Macro
Parameters: text
>
        Changed so posting member gets copy of own submitted email
        Check to make sure a Member and can_view section before issuing digest
    </n.comment> 
    <n.block
Binary
Namespace: BasicNamespace
Parameters: do
.>
        <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
            <condition1.local_user
Macro
Parameters: do
.can_view
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
 />
            <condition2.local_user
Macro
Parameters: do
.is_in_group
Binary
Namespace: UserNamespace
Parameters: group
 group="Members" />
        </n.both>
    </n.block.>
</override_macro>
Overrides default macro
... in email.naml
13
14
15
<macro name="should_get_instant_mail" requires="user,node_page" >
    <n.this_user.can_view.page_node />
</macro>