Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | // Function for getting synapse weight from actual user to a node | |
4 | // used for node setting | |
5 | ||
6 | function smarty_function_get_synapse_weight($params,&$smarty) { | |
7 | ||
8 | global $db,$node; | |
9 | ||
10 | $user_id=$_SESSION['user_id']; | |
11 | $node_id=$params['node_id']; | |
12 | ||
13 | $synapse_weight=nodes::getSynapseWeight($user_id,$node_id); | |
14 | ||
15 | $smarty->assign('synapse_weight',$synapse_weight); | |
16 | ||
17 | } | |
18 | ?> |