This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
plugins:tips [2014/02/07 10:05] datiswous [Working around the Lack of a Page-Delete Hook in 2.03] |
plugins:tips [2014/02/07 10:05] datiswous [Success and Error Messages] |
||
---|---|---|---|
Line 37: | Line 37: | ||
Assume you have 3 variables, ''$isSuccess'', ''$canUndo'' and ''$msg'' holding the message. To display the message for your plugin ''myplugin'', add the following code to your plugin: | Assume you have 3 variables, ''$isSuccess'', ''$canUndo'' and ''$msg'' holding the message. To display the message for your plugin ''myplugin'', add the following code to your plugin: | ||
- | <code> | + | <code php> |
<?php | <?php | ||
if (isset($msg)) { | if (isset($msg)) { |