Closed (works as designed)
Project:
Role help
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2010 at 03:52 UTC
Updated:
30 Dec 2010 at 21:15 UTC
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
Comment #1
joachim commentedI'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.
Comment #2
cewolcott commentedThanks for the info. I will create my own D7 module and eventually post the module as Role Details.
Comment #3
joachim commentedIf 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.
Comment #4
cewolcott commentedThanks 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.
Comment #5
joachim commentedIt 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.
Comment #6
cewolcott commentedLooks like a fun weekend for me .....