From 0710f8c3f1c00b8e9de7376253211b56d68d4ba4 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 24 Feb 2017 11:20:29 -0500 Subject: [PATCH] Added hooks help file support to adminHooks.php --- setup/adminHooks.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index e0ca786..99ec215 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -25,3 +25,20 @@ * * Also note that parameters will be in the context of the main admin controller constructor. */ + +// Add content to member detail page +add_filter('glm-member-db-admin-management-hooksHelp', function($content) { + + // Read in this plugin/addon hook help file + $fname = {definedPrefix}_PLUGIN_PATH.'/setup/hooksHelp.html'; + if (is_file($fname)) { + $hooksHelp = file_get_contents($fname); + if ($hooksHelp != false) { + $content .= $hooksHelp; + } + } + return $content; + }, + 10, + 2 +); -- 2.17.1