You are here

function subscriptions_add in Subscriptions 5

3 calls to subscriptions_add()
subscriptions_autosubscribe in ./subscriptions.module
Subscribes users to nodes in which they post, if not already subscribed
subscriptions_nodeapi in ./subscriptions.module
Implementation of hook_nodeapi().
subscriptions_page in ./subscriptions.module
displays subscribed content data on user and subuscription pages @ TODO clean up all of these parts

File

./subscriptions.module, line 1044

Code

function subscriptions_add($sid, $uid, $stype) {
  db_query('INSERT INTO {subscriptions} ( sid , uid, stype )  VALUES (%d , %d, \'%s\')', $sid, $uid, $stype);
}