Ability to restrict Facebook fiend linking on a site. This is provided as a plugin so that it can be seen in a public site addon list.

This commit is contained in:
friendica 2012-05-05 19:54:03 -07:00
parent 084a4b68f6
commit 0e778309db
4 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,18 @@
<?php
/**
* Name: Facebook Restrict
* Description: Install this addon and Facebook users will not be able to link friends. Existing users that are linking friends will not be affected.
* Version: 1.0
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*/
function facebook_restrict_install() {
set_config('facebook','restrict',1);
}
function facebook_restrict_uninstall() {
set_config('facebook','restrict',0);
}