Closed (fixed)
Project:
Translation Access
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2010 at 23:09 UTC
Updated:
16 Sep 2011 at 00:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchSorry that patch also has a separate notice fix in it, which I'll file separately. Here we are.
Comment #2
quicksketchI ran across a similar module the other day and it prevented this problem simply prefixing the function with "_". Seems like a good approach to me, so here's an alternative patch to #1, just putting an underscore in front of the function name.
Comment #3
quicksketchHeh, dang, included the notice fixes again. Same patch as #2 with only relevant changes.
Comment #4
toemaz commentedApplied to 6.x-1.x-dev.
Question: for developers already using this module, do they need to empty cache so the menu is rebuild? If so, how do we trigger this when they update the module?
Comment #5
quicksketchI don't think that this accidental implementation of hook_node_access() actually caused much harm, since it always bailed out pretty quickly and didn't return anything. However if you'd like to force a cache clear you can make an update hook that doesn't contain anything other than drupal_flush_all_caches();
Comment #6
yang_yi_cn commentedcommitted, with drupal_flush_all_caches() in .install file.