Is there a way that hook_perm can be checked for improper use of the T function? Perms should not be translated, yet some module developers think they should and it causes translated sites to work incorrectly. For example: http://drupal.org/node/217328

Comments

webchick’s picture

Title: Hook_perms » Add "common mistakes" coder ruleset?

Hm. Might make sense to add a "common coding mistakes" ruleset to include things like this. Another thing that frequently messes people up is not returning an array of some sort from hook_update_N, not to mention calling db_query() there instead of update_sql().

nancydru’s picture

Also not returning the schema array in hook_schema. Not that *I* would ever forget that.

stella’s picture

Status: Active » Closed (won't fix)

Drupal 5 version is no longer supported, closing.