You are here

function _similar_content_type_escape in Similar Entries 7

Same name and namespace in other branches
  1. 5 similar.module \_similar_content_type_escape()
  2. 6 similar.module \_similar_content_type_escape()

Strips characters from node type strings.

1 string reference to '_similar_content_type_escape'
theme_similar_content in ./similar.module
Queries the database for similar entries and puts them in a HTML list.

File

./similar.module, line 331
Module that shows a block listing similar entries. NOTE: Uses MySQL's FULLTEXT indexing for MyISAM tables.

Code

function _similar_content_type_escape(&$item) {
  $item = str_replace(array(
    "\0",
    "\n",
    "\r",
    "\\",
    "'",
    "\"",
    "\32",
  ), '', $item);
}