You are here

function subscriptions_get_full_subscription in Subscriptions 6

Same name and namespace in other branches
  1. 5.2 subscriptions.module \subscriptions_get_full_subscription()

Get all subscription fields for the given parameters.

File

./subscriptions.module, line 411
Subscriptions module.

Code

function subscriptions_get_full_subscription($uid, $module, $field, $value, $author_uid = -1) {
  $sql = "SELECT * FROM {subscriptions} WHERE module = '%s' AND field = '%s' AND value = '%s' AND author_uid = %d AND recipient_uid = %d";
  return db_fetch_object(db_query($sql, $module, $field, $value, $author_uid, $uid));
}