send_deleted_nodes_email

NAML documentation   Watch a video
   Usages of this macro
... in delete_node.naml
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<macro name="send_deleted_nodes_email" requires="node">
    <n.descendant_nodes_by_user
Binary
Namespace: NodeNamespace
Parameters: do
.>
        <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_user
Binary
Namespace: UserList
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
>
                <then>
                    <n.new_email
Binary
Namespace: NabbleNamespace
Parameters: do
.>
                        <n.nodes_list
Binary
Namespace: NodesGroupedByUser
Parameters: do
.attach_nodes
Macro
Requires: node_list, email
/>
                        <n.send
Binary
Namespace: EmailNamespace
Parameters: cc, text_part, bcc, attachments, to_name, subject, from_name, html_part, set_headers_for, aol_part, bounce_to, from, to
>
                            <to.current_user
Binary
Namespace: UserList
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/>
                            <to_name.current_user
Binary
Namespace: UserList
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/>
                            <subject><t>Deleted posts</t></subject>
                            <text_part.deleted_nodes_text
Macro
/>
                            <bounce_to.current_user
Binary
Namespace: UserList
Parameters: do
.bounces_address
Binary
Namespace: UserNamespace
/>
                        </n.send>
                    </n.new_email.>
                </then>
            </n.if.current_user.is_registered>
        </n.loop.>
    </n.descendant_nodes_by_user.>
</macro>