atrblacklist_result_count

Versions
6.1
atrblacklist_result_count($rid)

Cound how many results there are for a review.

Parameters

$rid The RID of the review for which to count the results.

Return value

An integer with the amount of results.

Code

atr/modules/atrblacklist/includes/atrblacklist.result.inc, line 17

<?php
function atrblacklist_result_count($rid) {
  $count = db_result(db_query("SELECT COUNT(*) FROM {atrblacklist_string} abs LEFT JOIN {atr_string} s ON abs.sid = s.sid WHERE s.rid = %d", $rid));

  return array(
    'number' => $count,
    'text' => t('!count matches', array('!count' => $count)),
  );
}
?>