You are here

function signature_forum_get_status in Signatures for Forums 6

Get the status for whether signature should be used for a particular node or comment

Parameters

$delta: An integer containing the id of a comment or node

Return value

TRUE if signature should be used, FALSE if it should be hidden.

2 calls to signature_forum_get_status()
signature_forum_form_alter in ./signature_forum.module
Implementation of hook_form_alter().
signature_forum_get_signature in ./signature_forum.module
Retrieve signature for a given user.

File

./signature_forum.module, line 763
Tweaks signatures in ways inspired by other traditional forum software:

Code

function signature_forum_get_status($delta, $type) {
  return db_result(db_query("SELECT status from {signature_post} WHERE delta = %d AND type = '%s'", $delta, $type));
}