hook_requirements() should not call t() directly, but use the value returned from get_t(); this is because when the hook is called, t() could not be available.

Comments

avpaderno’s picture

See hook_requirements() documentation for more informations.

avpaderno’s picture

The code is wrong because it uses the same code for both the installation, and the runtime phase. In the installation phase, t() is not available.

hass’s picture

That's true. We also may need to move the hook to the .install file...

hass’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.