The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Guidelines for $success and &message in hooks - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Guidelines for $success and &message in hooks (/showthread.php?tid=5042) |
Guidelines for $success and &message in hooks - grahame - Feb 17th, 2015 Hi In many of the hooks, there are variables for $success and $message. As far as I can work out, these are used for the message panel presented to users at the top of Formtools screens. Are there any guidelines for these variables for writers of hooks please? For example, if I set $success to false would this have the effect of exiting core formtools code? Or does it simply set the colour of the message panel to red? I would like to display 'error' messages to users when they have down something... err...questionable but would not want to exit the core php or cancel following hook calls? As always any help appreciated. |