Removing Role check box from user profile page

Dafunkn - September 5, 2009 - 07:40

I need to remove Role check box from the User's Profile Edit Page. I need to have it so the Media Rep. and the Developer role are not present ie: Can't be selected. I do need to keep them on the registration Page and they will then be approved by the site's admin. I am looking to edit the section of code below: The section I need to change is located on the bottom of this snippet. I am currently using the "Apply for Role" Module and the "Manage Role Application" Module. Thanks in advance for you help. I do have some screen caps if needed, showing what I'm looking for.

<fieldset><legend>Account information</legend><div class="form-item" id="edit-name-wrapper">
<label for="edit-name">Username: <span class="form-required" title="This field is required.">*</span></label>
<input maxlength="60" name="name" id="edit-name" size="60" value="admin" class="form-text required" type="text">
<div class="description">Spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.</div>
</div>
<div class="form-item" id="edit-mail-wrapper">
<label for="edit-mail">E-mail address: <span class="form-required" title="This field is required.">*</span></label>

<input maxlength="64" name="mail" id="edit-mail" size="60" value="dafunkn@gmx.com" class="form-text required" type="text">
<div class="description">A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.</div>
</div>
<div class="form-item" id="edit-pass-wrapper">
<div class="form-item password-parent" id="edit-pass-pass1-wrapper">
<label for="edit-pass-pass1">Password: </label>
<input name="pass[pass1]" id="edit-pass-pass1" maxlength="128" size="25" class="form-text password-field password-processed" type="password"><span class="password-strength"><span class="password-title">Password strength:</span> <span class="password-result"></span></span>
</div>

<div class="form-item confirm-parent" id="edit-pass-pass2-wrapper">
<label for="edit-pass-pass2">Confirm password: </label>
<input name="pass[pass2]" id="edit-pass-pass2" maxlength="128" size="25" class="form-text password-confirm" type="password"><span class="password-confirm">Passwords match: <span></span></span>
</div><div style="display: none;" class="password-description"></div>

<div class="description">To change the current user password, enter the new password in both fields.</div>
</div>
<div class="form-item">
<label>Status: </label>

<div class="form-radios"><div class="form-item" id="edit-status-0-wrapper">
<label class="option" for="edit-status-0"><input id="edit-status-0" name="status" value="0" class="form-radio" type="radio"> Blocked</label>
</div>
<div class="form-item" id="edit-status-1-wrapper">
<label class="option" for="edit-status-1"><input id="edit-status-1" name="status" value="1" checked="checked" class="form-radio" type="radio"> Active</label>
</div>
</div>
</div>
<div class="form-item">
<label>Roles: </label>

<div class="form-checkboxes"><div class="form-item" id="edit-roles-2-wrapper">
<label class="option" for="edit-roles-2"><input name="roles[2]" id="edit-roles-2" value="1" checked="checked" disabled="disabled" class="form-checkbox" type="checkbox"> authenticated user</label>
</div>
<div class="form-item" id="edit-roles-1000016-wrapper">
<label class="option" for="edit-roles-1000016"><input name="roles[1000016]" id="edit-roles-1000016" value="1000016" class="form-checkbox" type="checkbox"> Developer</label>
</div>
<div class="form-item" id="edit-roles-1000017-wrapper">
<label class="option" for="edit-roles-1000017"><input name="roles[1000017]" id="edit-roles-1000017" value="1000017" class="form-checkbox" type="checkbox"> Media Rep.</label>

</div>
</div>
</div>
</fieldset>

 
 

Drupal is a registered trademark of Dries Buytaert.