[WIP] Group field type and formatter#40
Conversation
c2271d3 to
f4ba315
Compare
b0fdda2 to
0f42968
Compare
There was a problem hiding this comment.
This method name is a bit confusing. Since this returns an array and Fields is plural this seems to indicate that it returns multiple (?) group audience fields. Maybe better would be getGroupAudienceFieldName().
Initially I thought it would be more useful to return the full field definition, but I suppose the machine name and label are the only interesting properties on it anyway.
There was a problem hiding this comment.
This does return multiple? You can have more than one audience field attached to a bundle.
There was a problem hiding this comment.
@pfrenssen you can indeed have multiple group audience fields. This usually makes more sense when thinking of the user entity. For example simple_ref would reference a group using the default OG membership type; and premium_ref would reference using some Premium OG membership type.
Each membership created also registers through which field it was saved - so on edit we know how to build the options list.
41e1564 to
fae8557
Compare
There was a problem hiding this comment.
Don't think I really like this approach. Was just because it is in theory most flexible for the future. Not sure we would ever need to change this though? If not, I'll just hardcode the value to TRUE again in the OgGroupBoolean class.
|
@amitaibu So all the functions that need to be converted in here now, should I put those in separate PRs? Like |
Would be nice. Those smaller PRs are nicer to grok, and are removing blocks from other PRs. |
|
👍 |
|
#53 is providing the |
1ea530d to
5aa7e1c
Compare
|
Another dep resolved: #56 |
d5644ee to
401e8e2
Compare
|
Will tackle |
There was a problem hiding this comment.
Isn't that an extra line?
|
For adding the subscribe/unsubscribe links: #59 Actually quite a bit of work involved there, as we need the routes, access checking, controller callbacks, and confirmation forms. |
cb8228c to
61d25f5
Compare
61d25f5 to
958b97d
Compare
There was a problem hiding this comment.
@pfrenssen could really do with that shiny new og_get_best_group_audience_field method now :)
…ttingsSummary method
113c950 to
69a330f
Compare
|
@damiankloip will you have time to re-pick this issue, or do you prefer me to take this one? |
|
I'll pick this one next, as it compliments #286 |
|
Closed in favor of #286 |
No description provided.