I have a requirement to extend change add/edit screen of static group and add some extra fields there, like default email subject.
For saving extra fields I'm thinking about adding a new table, linked to groups table.
Then to display those fields I will need to create my own version of CRM_Group_Form_Edit.
Now I'm thinking what is better way to do all this, 2 options:
- put required classes and templates in custom folder and change them. Looks like this is standard way.
- instead of editing CRM_Group_Form_Edit I could create my own class then change CRM_Group_StateMachine to point to that class which would extend CRM_Group_Form_Edit
2nd option kind of sounds a better way thinking about feature upgrades.
are there same case scenarios when to use what? or any other suggestions for this requirement?