Skip to the content
Documentation

subscribed_nodes

No ratings yet

Summary

Fetches nodes that the current user has subscribed to.

Usage

fetch( 'notification', 'subscribed_nodes',
       hash( [ 'offset', offset, ]
             [ 'limit',  limit   ] ) )

Parameters

Name Type Description Required
offset integer The offset to start at. No.
limit integer The number of nodes that should be fetched. No.

Returns

Array of ezsubtreenotificationrule objects or FALSE.

Description

This function fetches the nodes that the current user has subsribed to. The "offset" and "limit" parameters are optional. The function returns an array of ezsubtreenotificationrule objects or FALSE if no nodes could be found.

Examples

Example 1

{def $subscriptions=fetch( 'notification', 'subscribed_nodes' )}

{foreach $subscriptions as $subscription}
    {$subscription.node.name|wash} <br />
{/foreach}

Outputs the names of the nodes that the current user has subscribed to.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.