Remove unused hook
[squirrelmail.git] / plugins / bug_report / setup.php
CommitLineData
15e6162e 1<?php
15e6162e 2/**
2329d86d 3 * Bug Report plugin - setup script
15e6162e 4 *
79ba18dc 5 * @copyright 1999-2013 The SquirrelMail Project Team
4b4abf93 6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
2a880038 7 * @version $Id$
ea5f4b8e 8 * @package plugins
9 * @subpackage bug_report
15e6162e 10 */
11
ea5f4b8e 12/**
13 * Initialize the bug report plugin
1a219da9 14 *
ea5f4b8e 15 * @return void
1a219da9 16 *
2a880038 17 * @access private
1a219da9 18 *
ea5f4b8e 19 */
d79e01f5 20function squirrelmail_plugin_init_bug_report() {
21 global $squirrelmail_plugin_hooks;
22
1a219da9 23 $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['bug_report']
24 = 'bug_report_button';
25 $squirrelmail_plugin_hooks['optpage_loadhook_display']['bug_report']
26 = 'bug_report_block';
15e6162e 27}
28
29
2a880038 30/**
31 * Show the button in the main bar
1a219da9 32 *
2a880038 33 * @access private
1a219da9 34 *
2a880038 35 */
d79e01f5 36function bug_report_button() {
1a219da9 37 include_once(SM_PATH . 'plugins/bug_report/functions.php');
38 return bug_report_button_do();
15e6162e 39}
40
2a880038 41/**
1a219da9 42 *
e1df9174 43 * Register bug report option block
1a219da9 44 *
e1df9174 45 * @since 1.5.1
1a219da9 46 *
2a880038 47 * @access private
1a219da9 48 *
2a880038 49 */
e1df9174 50function bug_report_block() {
2329d86d 51 include_once(SM_PATH.'plugins/bug_report/functions.php');
1a219da9 52 bug_report_block_do();
15e6162e 53}
1a219da9 54
55/**
56 * Returns info about this plugin
57 *
58 */
59function bug_report_info() {
60 return array(
61 'english_name' => 'Bug Report',
62 'authors' => array(
63 'SquirrelMail Team' => array(),
64 ),
65 'version' => 'CORE',
66 'required_sm_version' => 'CORE',
67 'requires_configuration' => 0,
68 'summary' => 'Helps with sending bug reports to the SquirrelMail Developers. Collects a lot of useful information about your system.',
69 'details' => 'When people stumble across a bug, which may happen in a work-in-progress, often times they would like to help out the software and get rid of the bug. Sometimes, these people don\'t know much about the system and how it is set up -- they know enough to make the bug happen for them. This bug report plugin is designed to gather all of the non-private information for the user automatically, so that the user doesn\'t need to know more than how to trigger the bug.',
70 );
71}
72
73
74
75/**
76 * Returns version info about this plugin
77 *
78 */
79function bug_report_version() {
80 $info = bug_report_info();
81 return $info['version'];
82}