You are here

function subscriptions_blog_ui_count_user_subscriptions in Subscriptions 6

Same name and namespace in other branches
  1. 5.2 subscriptions_blog_ui.module \subscriptions_blog_ui_count_user_subscriptions()

Implementation of hook_count_user_subscriptions().

File

./subscriptions_blog_ui.module, line 161
Provide a Subscriptions UI for the blog content type subscriptions

Code

function subscriptions_blog_ui_count_user_subscriptions($counts, $uid) {
  $counts['blog']['author_uid'] = db_result(db_query("SELECT count(*) FROM {subscriptions} WHERE module = 'node' AND field = 'type' AND value = 'blog' AND recipient_uid = %d", $uid));
  return $counts;
}