From 837e83a7f0507c29c9482e3c81eadf25ed3a8d22 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 24 Feb 2017 11:59:56 -0500 Subject: [PATCH] Fixed issues with hooksHelp not properly reporting --- setup/adminHooks.php | 17 +++++++++++++++++ setup/hooksHelp.html | 1 + 2 files changed, 18 insertions(+) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index e81f3ea..59c8200 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -27,6 +27,23 @@ */ +// Add hooksHelp.html file to admin Management hooks output +add_filter('glm-member-db-admin-management-hooksHelp', function($content) { + + // Read in this plugin/addon hook help file + $fname = GLM_MEMBERS_SERVERSTATS_PLUGIN_PATH.'/setup/hooksHelp.html'; + if (is_file($fname)) { + $hooksHelp = file_get_contents($fname); + if ($hooksHelp != false) { + $content .= $hooksHelp; + } + } + return $content; + }, + 10, + 2 +); + // Add server stats summary and graphs to main dashboard widget add_filter( 'glm-member-db-dashboard-widget-othernotices', function( $content ) { $content .= $this->controller('dashboardWidget', 'serverStats', array('location' => 'widget')); diff --git a/setup/hooksHelp.html b/setup/hooksHelp.html index b7866a4..45c15e8 100644 --- a/setup/hooksHelp.html +++ b/setup/hooksHelp.html @@ -1,2 +1,3 @@ +

Server Stats Add-On

-- 2.17.1