Joachim,

You state that you no longer use this module. Do you add attributes to your roles a different way now? I was looking to add a short description, creation date, created by and comment fields associated with a role so that it would mimic are current website design in dot net. I was going to use your module as a template to develop my own unless you have a better suggestion.

Comments

joachim’s picture

Status: Active » Fixed

I've not had need of this functionality on any site for ages...

> I was going to use your module as a template to develop my own unless you have a better suggestion.

Sounds like a good plan :)
You can just add further columns to the table this module creates for your extra data on roles.

cewolcott’s picture

Status: Fixed » Closed (works as designed)

Thanks for the info. I will create my own D7 module and eventually post the module as Role Details.

joachim’s picture

If you're developing on D7, I strongly recommend that rather than hard-code fields, you create a module that exposes roles as entities, thus allowing the use of fields.

cewolcott’s picture

Thanks for the suggestion. Since I am pretty far along I will continue to develop with hardcoded fields, until I can understand what you mean by "exposes roles as entities, thus allowing the use of fields". I count myself as a senior programmer, but am new to the drupal world and trying to get use to the terminology and all of the hooks. Any further suggestions, recommending readings or websites would be appreciated.

I purchased the New book: Drupal 7 Module Development and should receive it early next week.

joachim’s picture

It would basically mean that a site admin can add fields, the same way you can to nodes or taxonomy terms with Drupal core.

It's not hard to do and considerably simpler than hardcoding, as all the storage is done for you. Look at hook_entity_info() and profile2 module, and also entityAPI module which may be useful as a dependency too.

cewolcott’s picture

Looks like a fun weekend for me .....