Return to Snippet

Revision: 14241
at May 26, 2009 07:11 by joelambert


Initial Code
public function isSpam($values)
{
	$akismet = new Akismet(url::base(), Kohana::config('comments.APIKey'));
	$akismet->setCommentAuthor($values['author']);
	$akismet->setCommentAuthorEmail($values['email']);
	$akismet->setCommentAuthorURL($values['url']);
	$akismet->setCommentContent($values['body']);

	return $akismet->isCommentSpam();
}

Initial URL

                                

Initial Description

                                

Initial Title
Kohana helper method for Askimet

Initial Tags
php

Initial Language
PHP