"content_access_mode",
"id" => "groups-content-access-mode",
"value" => $content_access_mode,
"options_values" => array(
ElggGroup::CONTENT_ACCESS_MODE_UNRESTRICTED => elgg_echo("groups:content_access_mode:unrestricted"),
ElggGroup::CONTENT_ACCESS_MODE_MEMBERS_ONLY => elgg_echo("groups:content_access_mode:membersonly"),
)
);
if ($entity) {
// Disable content_access_mode field for hidden groups because the setting
// will be forced to members_only regardless of the entered value
if ($entity->access_id === $entity->group_acl) {
$access_mode_params['disabled'] = 'disabled';
}
}
?>
getContentAccessMode() == ElggGroup::CONTENT_ACCESS_MODE_UNRESTRICTED) {
// Warn the user that changing the content access mode to more
// restrictive will not affect the existing group content
$access_mode_warning = elgg_echo("groups:content_access_mode:warning");
echo "$access_mode_warning";
}
?>