[development] modify permissions using hook_menu_alter()
Earnie Boyd
earnie at users.sourceforge.net
Tue Apr 28 16:16:51 UTC 2009
Quoting Lluís <enboig at gmail.com>:
> After reading og_user_roles I found I was able to modify $user->roles
> in hook_boot(); so no more changes are necessary
>
> It is a completely different approach, but everything is simplier in
> this way; I just need to create a role with the permissions I want,
> and then at hook_boot(); add the role to the users I want.
>
Or even easier just add the role to the user via the admin/user/user UI.
--
Earnie
-- http://r-feed.com/ -- http://for-my-kids.com/
-- http://www.4offer.biz/ -- http://give-me-an-offer.com/
More information about the development
mailing list