Creating Additional Roles and Hiding ER Core tabs

This is a New Mexico Customization that may be helpful to other EPSCoR jurisdictions.

An additional role was added (be it guest, blogger, etc). The ER tabs on the user profile can be hidden via use of the code below

This is added to the hook_form_alter in the user profile at - /er/includes/form_logic.inc

********* 'BLOGGER' can be changed to whatever role necessary.********

(in_array('BLOGGER', array_values($user->roles))) {

field_group_hide_field_groups($form, array('group_er_demographics')); // demographics field group
field_group_hide_field_groups($form, array('group_er_involvement')); // EPSCoR Involvement field group
field_group_hide_field_groups($form, array('group_er_education')); // Edcuation field group
field_group_hide_field_groups($form, array('group_er_inst')); // institutions field group
field_group_hide_field_groups($form, array('group_er_data')); // Data Collection field group
}

******************************************************************************************