[development] hook_perm() and t()

Augustin (Beginner) drupal.beginner at wechange.org
Wed Sep 6 11:12:56 UTC 2006


Hi,

hook_perm() doesn't use t()?
I've checked a few core modules, and the perms are not wrapped in t().
Does this mean that the perms in ?q=admin/user/access are never translated?

Is this valid?

/*************************************
 * Implementation of hook_perm()
 *************************************/
function hook_perm() {
  return array(t('administer hook'));
}

and:


'access' => user_access(t('administer demexp')),


???

http://api.drupal.org/api/HEAD/function/hook_perm
makes no mention of t() either way.

thanks,

Augustin.



-- 
http://www.wechange.org/
Because we and the world need to change.
 
http://www.reuniting.info/
Intimate Relationships, peace and harmony in the couple.


More information about the development mailing list