You are here

function subscriptions_get_full_subscription in Subscriptions 5.2

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

Get all subscription fields for the given parameters.

File

./subscriptions.module, line 284
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));
}