Fixed improper module argument assignment on hook registering

New hook registered by module has the `module` argument automatically set to `true` but it is not the right behavior by default, and we should have the control on this argument.