Location: PHPKode > projects > Esvon Personals > esvon-personals/modules/Favorites/hw_event.php
<?php

// --------------------------------------------------------------------------
//
// Esvon Classifieds v.4.0
// Copyright(C), Esvon LTD, 2001-2010, All Rights Reserved.
// E-mail: hide@address.com
//
// All forms of reproduction, including, but not limited to, internet posting, 
// printing, e-mailing, faxing and recording are strictly prohibited.
// One license required per site running Esvon Classifieds. 
// To obtain a license for using Esvon Classifieds, please register at
// http://www.esvon.com/pg/products/p_classifieds/
//
// --------------------------------------------------------------------------

function Favorites_Event($event,&$args){
global $db;

  $HW_MOD = 'Favorites';
  $TBL_FAV_AD = hwModTable($HW_MOD,'link');

  switch($event){
     
    case 'onUserDelete':

      $db->query('DELETE FROM '.$TBL_FAV_AD.' WHERE user_id IN('.$args['STR_IDS'].')');
      break;

    case 'onAdDelete':

      $db->query('DELETE FROM '.$TBL_FAV_AD.' WHERE link_id='.(int)$args['ID']);
      break;

  }

}

?>
Return current item: Esvon Personals