Im having some difficulty telling the Similar Entries module to display only one specific type of content. As I'm somewhat new to PHP, Im not sure where in the module code I should specify my content type. Below is the code for the Similar Entries module. If someone can be kind enough to point out where I place my content type, I would appreciate it.
<?php
/**
* @file
* Module that shows a block listing similar entries.
* NOTE: USES MySQL's FULLTEXT indexing.
* http://arnab.org/project/similar
*/
$similar_node_title = "";
$similar_node_body = "";
$similar_node_nid = "";
/**
* Implementation of hook_help().
*/
function similar_help($section = "admin/help#similar") {
switch ($section) {
case "admin/help#similar":
return t("
Lists 10 most similar nodes to the current node.
");
case "admin/modules#description":
return t("Lists 10 most similar nodes to the current node.");
case 'node/add#similar':
return t("Lists 10 most similar nodes to the current node.");
break;
}
}
/**
* Implementation of hook_menu().
*/
function similar_menu() {
global $similar_node_title;
global $similar_node_body;
global $similar_node_nid;
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(array('nid' => arg(1)));
if ($node->nid) {
$similar_node_title = $node-> title;