ID | Project | Category | Submitted / Last Updated |
---|---|---|---|
01385 | UserSpice | ACP Code | 2021-11-05 12:51:17 / 2021-12-26 01:48:40 |
Reported | Dan Hoover | Assigned To | Unassigned |
Priority | none | Reported | 5.3.7 |
Status | closed fixed | Resolution Version and Commit | 5.3.8 |
Summary | Add Global HookData variable to includeHook function | ||
Description |
due to scope issues, returning data from hooks may not be possible, so we're declaring a global hookData variable (see plgdev us_helpers.php) |
xxxxxxxxxx
Due to scope issues, plugin hooks could not "return" data to the main file if the variable had not been defined before the hook was included. Now hooks can use an array called hookData to return data to the script because it is globally declared in the getMyHooks function.