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
<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.block
Binary
Namespace: BasicNamespace
Parameters: do
.>
        <n.local_user
Macro
Parameters: do
.can_view
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
 />
    </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>