aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Daemon/Deliver_hooks.php
blob: 4d3ce4e1d6458cdc5e392ddd6a605ec3323472c4 (plain) (tree)
1
2
3
4
5
6
7
8
9



                         

                     
                                                  
 
                              

                               


                                                            

                                                             




         
<?php

namespace Zotlabs\Daemon;

class Deliver_hooks {

	static public function run($argc, $argv) {

		if ($argc < 2)
			return;

		$r = q("select * from item where id = '%d'",
			intval($argv[1])
		);
		if ($r)
			call_hooks('notifier_normal', $r[0]);

	}
}