0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
prefs
/
[
Home
]
File: wikiplugin.php
<?php // (c) Copyright 2002-2011 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: wikiplugin.php 33195 2011-03-02 17:43:40Z changi67 $ function prefs_wikiplugin_list() { global $tikilib; $prefs = array(); foreach( $tikilib->plugin_get_list() as $plugin ) { $info = $tikilib->plugin_info( $plugin ); if (empty($info['prefs'])) $info['prefs'] = array(); $dependencies = array_diff( $info['prefs'], array( 'wikiplugin_' . $plugin ) ); $prefs['wikiplugin_' . $plugin] = array( 'name' => tr( 'Plugin %0', $info['name'] ), 'description' => $info['description'], 'type' => 'flag', 'help' => 'Plugin' . $plugin, 'dependencies' => $dependencies, ); } $prefs['wikiplugin_snarf_cache'] = array( 'name' => tra('Global cache time for the plugin snarf in seconds'), 'description' => tra('Default cache time for the plugin snarf') . ', ' . tra('0 for no cache'), 'default' => 0, 'dependencies' => array('wikiplugin_snarf'), 'filter' => 'int', 'type' => 'text' ); return $prefs; }