You are here

function _url_count in Spam 5.3

Keep track of the total number of URLs found in the current content.

Parameters

$url A URL to be added to a static array.:

Return value

Array of URLs showing how many times each URL is present, and the total number of arrays.

2 calls to _url_count()
url_spam_filter in filters/url/url.module
Search for known spam urls in content.
_url_extract in filters/url/url.module

File

filters/url/url.module, line 169

Code

function _url_count($url = NULL) {

  // build up an array of all URLs seen in current content
  static $urls = array();
  if ($url != NULL) {
    $urls["{$url}"]++;
    $urls['total']++;
  }
  return $urls;
}