Function add_integration_function
Add a function for integration hook. does nothing if the function is already added.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
string |
$hook |
The complete hook name. |
string |
$function |
The function name. Can be a call to a method via Class::method. |
boolean |
$permanent = true |
If true, updates the value in settings table. |
string |
$file = '' |
The file. Must include one of the following wildcards: $boarddir, $sourcedir, $themedir, example: $sourcedir/Test.php |
boolean |
$object = false |
Indicates if your class will be instantiated when its respective hook is called. If true, your function must be a method. |