A static variable exists only in a local function scope.
Instead of dealing with variable scope issues following approach might be taken.
Introduce an argument "$reset = FALSE" for feedapi_get_settings() like following and reset $node_settings[$nid] if "$reset = TRUE".
function feedapi_get_settings($node_type, $nid = FALSE, $reset = FALSE)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | feedapi_reset_settings_3.patch | 1.95 KB | mustafau |
| #1 | feedapi_reset_settings.patch | 626 bytes | mustafau |
Comments
Comment #1
mustafau commentedPatch is attached.
Comment #2
mustafau commentedComment #3
mustafau commentedUpdated to 6.x.
Comment #4
aron novakThanks. Fixed for both braches.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.