mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
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:
parent
084a4b68f6
commit
0e778309db
4 changed files with 41 additions and 1 deletions
18
facebook_restrict/facebook_restrict.php
Normal file
18
facebook_restrict/facebook_restrict.php
Normal 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);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue