Guest User

Untitled

a guest
Apr 10th, 2012
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. /**
  2.  * bp_groupblog_upgrade_user( $blog_id, $user_id, $group_id )
  3.  *
  4.  * Subscribes user in question to blog in question
  5.  * This code was initially inspired by Burt Adsit re-interpreted by Boone
  6.  */
  7. function bp_groupblog_upgrade_user( $blog_id, $user_id, $group_id ) {
  8.   global $blog_id;
  9.    
  10.     $blog_id = groups_get_groupmeta ( $group_id, 'groupblog_blog_id' );
  11.  
  12.     // If the group has no blog linked, get the heck out of here!
  13.     if ( !$blog_id )
  14.         return;
  15.  
  16.     // Setup some variables
  17. ...
Advertisement
Add Comment
Please, Sign In to add comment