How to add a value to the object group in group module? I have been using the Group module with D7 for a while, but I always regretted that there was no 'creation date' value for each group. I added a column in my database which fills in that value automatically, but I would like it to be part of the object group so that I can retrieve the value more easily. Ideally I want to be able to do this:

$group = group_load($gid);
$thedate = $group-&gt;creation_date;


How should I go about it? Thanks.
Groups are fieldable entities, so you could add a field with a fieldname of, say, creation_date.

And if you'd then use the Rules module, you could create a custom rule like so:


Rules Event: After saving a new group.
Rules Action: Set a data value, i.e. to set the value of your creation_date field.


Note: If the field (like such creation_date field) does not show up within the Rules Action to be added, you may have to first add a Rules Condition like "Entity has field".