public function loaded() { parent::loaded(); require_once 'plugins_utils.php'; if (is_dir("/usr/share/mediawiki")) { forge_define_config_item('src_path', 'mediawiki', "/usr/share/mediawiki"); forge_define_config_item('mwdata_path', 'mediawiki', '$core/data_path/plugins/mediawiki'); forge_define_config_item('projects_path', 'mediawiki', '$mediawiki/mwdata_path/projects'); forge_define_config_item('master_path', 'mediawiki', '$mediawiki/mwdata_path/master'); forge_define_config_item('enable_uploads', 'mediawiki', false); forge_set_config_item_bool('enable_uploads', 'mediawiki'); } }
* * FusionForge is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * * FusionForge is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ forge_define_config_item('test', 'taskboard', 'test value'); class TaskBoardPlugin extends Plugin { function TaskBoardPlugin() { $this->Plugin(); $this->name = "taskboard"; $this->text = "Task Board"; // To show in the tabs, use... $this->hooks[] = "project_admin_plugins"; // to show up in the admin page fro group $this->hooks[] = "groupmenu"; $this->hooks[] = "groupisactivecheckbox"; // The "use ..." checkbox in editgroupinfo $this->hooks[] = "groupisactivecheckboxpost"; //