7e19ef770af98bb1003bb8235029450b46e9af61
2 //returns array of linked nodes, possible args listing_amount,offset,node_id,orderby=synapse
4 function smarty_function_get_linked_nodes($params,&$smarty) {
7 if (empty($params['listing_amount'])) {
8 $listing_amount=DEFAULT_LISTING_AMOUNT
;
10 if ($params['listing_amount']=='all') $listing_amount=DEF_MAX_LISTING_AMMOUNT
;
11 elseif (is_numeric($params['listing_amount'])) $listing_amount=$params['listing_amount'];
14 if (isset($params['offset']) && is_numeric($params['offset'])) $offset=$params['offset'];
15 elseif (isset($_POST['offset']) && is_numeric($_POST['offset'])) $offset=$_POST['offset'];
18 if (isset($params['node_id'])) {
19 $node_id=$params['node_id'];
21 $node_id=$node['node_id'];
24 if ($params['orderby']='synapse') {
25 $orderby='synapse_created';
30 $get_linked_nodes=nodes
::getLinkedNodes($node_id,$orderby,$offset,$listing_amount);
31 $smarty->assign('get_linked_nodes',$get_linked_nodes);
This page took 0.270498 seconds and 3 git commands to generate.