I just implemented hook_enable to TAC. I found this bug, as i tested the new hook.
function taxonomy_access_enable() {
node_access_rebuild();}
}
When enabling TAC: node_access is rebuilt with default grants ONLY: INSERT INTO {node_access} VALUES (0, 0, 'all', 1, 0, 0)
I think, this is caused because module_implements('node_grants') returns with 0, when I just enable TAC.
This might be a bug for hook_enable, because it is called before module is enabled properly, so that hooks cannot be invoked.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fix_0.patch | 1.93 KB | keve |
Comments
Comment #1
keve commentedSee patch.
I had to change module_implement() function, since it does not include hooks for new module, at module_enable() process.
You might assign this issue to other drupal 'component'.
Comment #2
keve commentedI proposed a general fix for this solution (that works for all modules implementing hook_enable()).
http://drupal.org/node/93212
Comment #3
chx commentedActually this is a duplicate of that issue.