Add access to a blog

This snippet shows how to add access to a blog for a specific user.

function my_threewp_broadcast_get_user_writable_blogs( $action )
{
	// We want to modify access only for a specific user.
	if ( $action->user_id != 1 )
		return;

	// And we want to add access to blog # 25
	$action->add_access( 25 );
}
// Broadcast fills the blog list at prio 100, so use a higher number.
add_action( 'threewp_broadcast_get_user_writable_blogs', 'my_threewp_broadcast_get_user_writable_blogs', 200 );