You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
822 B

<?php
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
//author : aris002@yahoo.co.uk
require_once('lib/socnets/PrefsGen.php');
use TikiLib\Socnets\PrefsGen\PrefsGen;
/**
* @return array
* the name _socnets_ must correspond this filename.
* Otherwise, you will not get your prefs set!!!
**/
function prefs_socnets_list()
{
$prefix = substr(basename(__FILE__), 0, -4) . '_';
$prefs = PrefsGen::getSocPrefs($prefix);
return $prefs;
}
//to generate a function depending on the file name?
//$funcname = "blah";
//$args = "args"
//$funcname = 'function ' . $funcname . "({$args}) { ... }";
//eval($funcname);