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.

CommentFileSizeAuthor
#1 fix_0.patch1.93 KBkeve

Comments

keve’s picture

StatusFileSize
new1.93 KB

See 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'.

keve’s picture

I proposed a general fix for this solution (that works for all modules implementing hook_enable()).
http://drupal.org/node/93212

chx’s picture

Status: Active » Closed (duplicate)

Actually this is a duplicate of that issue.