Changing default setting

In a few places, Creating a group for example, I want to change the default setting in a drop down menu.  When creating a group the default membership permission is "Closed - Users must be invited".  I want to change this so the default is "Open - Any user may join"  I found the text in the language file for groups but I don't see what I can change to change the default selection.

/*
    * Access
    */
   'groups:access:public' => 'Open - Any user may join',
   'groups:access:private' => 'Closed - Users must be invited',

I changed the order they are in cause I couldn't see anything that caused one to be selected as the default. Of course that would have been too easy. I just don't know enough about php so can you please tell me how to do this? Thanks.
 

  • What determines the default values for select inputs will almost always be in a view.  For groups, look in mod/groups/views/default/forms/groups/edit.php.  The default is what is sent via "value."