<?php
// $Id: comment_functions.php,v 1.3 2005/10/28 11:56:05 ohwada Exp $

// 2004-11-28 K.OHWADA
// write fair, delete unnecessary comments

// 2004/08/10 K.OHWADA
// enable to install this module two or more. 
// not use class weblinksCategory, weblinksLink

//================================================================
// comment callback functions
// use class weblinksLink
// 2004/01/14 K.OHWADA
//================================================================

// --- change function name ---
function weblinks_com_update($lid, $comments)
{
	global $xoopsDB;

// --- change dir name ---
	$MODULE_DIRNAME = 'weblinks';

	$table_link = $xoopsDB->prefix("{$MODULE_DIRNAME}_link");

	$sql = "UPDATE $table_link SET comments=$comments WHERE lid=$lid";
	$xoopsDB->queryF($sql);
}

// --- change function name ---
function weblinks_com_approve(&$comment)
{
	// notification mail here
}
?>