* @version $Revision: 3473 $ */ require_once("geograph/eventhandler.class.php"); require_once("geograph/gridsquare.class.php"); //filename of class file should correspond to class name, e.g. myhandler.class.php class UpdateContentWithDeletedTopic extends EventHandler { function processEvent(&$event) { $db=&$this->_getDB(); $topic_id = $event['event_param']; $db->Execute("delete from content where foreign_id = $topic_id and source in ('gsd','themed','gallery')"); //return true to signal completed processing //return false to have another attempt later return true; } } ?>