summaryrefslogtreecommitdiff
path: root/classes/plugin.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-01-06 10:37:03 +0300
committerAndrew Dolgov <[email protected]>2022-01-06 10:37:03 +0300
commitc3482fbe6b22885f5619df02387de09be0886cfe (patch)
tree4bbd69f4335855a3015805ab840e26f0301f4570 /classes/plugin.php
parent97baf3e8b9be699d972b91a159ccbe0891efe8ae (diff)
generate a warning if plugin-generated content of HOOK_ARTICLE_BUTTON or _LEFT_BUTTON can't be parsed as valid XML
Diffstat (limited to 'classes/plugin.php')
-rw-r--r--classes/plugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/plugin.php b/classes/plugin.php
index 3bced3b04..39af6a9a1 100644
--- a/classes/plugin.php
+++ b/classes/plugin.php
@@ -98,7 +98,7 @@ abstract class Plugin {
/* GLOBAL hooks are invoked in global context, only available to system plugins (loaded via .env for all users) */
- /** Adds buttons for article (on the right) - e.g. mail, share, add note.
+ /** Adds buttons for article (on the right) - e.g. mail, share, add note. Generated markup must be valid XML.
* @param array<string,mixed> $line
* @return string
* @see PluginHost::HOOK_ARTICLE_BUTTON
@@ -307,7 +307,7 @@ abstract class Plugin {
return [];
}
- /** Adds per-article buttons on the left side
+ /** Adds per-article buttons on the left side. Generated markup must be valid XML.
* @param array<string,mixed> $row
* @return string
* @see PluginHost::HOOK_ARTICLE_LEFT_BUTTON