You are here

function spam_load in Spam 5

Load's all fields from the matching spam entry in the spam_tracker table.

Parameters

$source Module type such as 'comment', 'node', ...:

@id Unique id for content (cid, nid, ...):

1 call to spam_load()
spam_page in ./spam.module
Drupal _page hook. Provides various spam actions based on the URL that is currently being accessed.

File

./spam.module, line 2253

Code

function spam_load($source, $id) {
  return db_fetch_object(db_query("SELECT * FROM {spam_tracker} WHERE source = '%s' AND id = %d", $source, $id));
}