function nodejs_subscribe_is_user_subscribed_to_node in Node.js integration 6
Same name and namespace in other branches
- 7 nodejs_subscribe/nodejs_subscribe.module \nodejs_subscribe_is_user_subscribed_to_node()
Check to see if the given uid is subscribed to the given node.
Parameters
mixed $uid :
mixed $nid :
Return value
boolean
3 calls to nodejs_subscribe_is_user_subscribed_to_node()
- nodejs_subscribe_nodeapi in nodejs_subscribe/
nodejs_subscribe.module - Implements hook_nodeapi().
- nodejs_subscribe_node_view in nodejs_subscribe/
nodejs_subscribe.module - Implements hook_node_view().
- nodejs_subscribe_subscribe_node in nodejs_subscribe/
nodejs_subscribe.module - Page callback for subscribing/unsubscribing to a node.
File
- nodejs_subscribe/
nodejs_subscribe.module, line 161
Code
function nodejs_subscribe_is_user_subscribed_to_node($uid, $nid) {
return db_fetch_object(db_query('SELECT nid FROM {nodejs_subscribe_subscription} WHERE uid = %d AND nid = %d', $uid, $nid));
}