From 9c17163b552af8d6eb364f27ebbaad6001c29fce Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 3 Dec 2013 10:51:01 +0100 Subject: [PATCH] bind values for get_parentnodes_tree --- src/nodetree_virtual.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/nodetree_virtual.erl b/src/nodetree_virtual.erl index e48ae01d0..1486fbc05 100644 --- a/src/nodetree_virtual.erl +++ b/src/nodetree_virtual.erl @@ -119,7 +119,14 @@ get_nodes(_Host) -> []. get_parentnodes(_Host, _Node, _From) -> []. -get_parentnodes_tree(_Host, _Node, _From) -> +-spec(get_parentnodes_tree/3 :: +( + Host :: mod_pubsub:host(), + NodeId :: mod_pubsub:nodeId(), + From :: jid()) + -> [{0, [mod_pubsub:pubsubNode(),...]}] +). +get_parentnodes_tree(Host, NodeId, From) -> case get_node(Host, NodeId, From) of Node when is_record(Node, pubsub_node) -> [{0, [Node]}]; _Error -> []