How to write a module that changes user role when account is created I am writing a module called "Applicant" and I want it to add a role called "applicant" to a user after the user creates their own account. 

applicant.info

name = Applicant
description = Handles Applicant User Actions
core = 7.x


applicant.module

&lt;?php
function applicant_user_insert(){

}


What would I include inside of the hook in applicant.module to access the current user's roles and add "Applicant"?
Don't re-invent the wheel!  https://drupal.org/project/registration_role

Also I think you want to look at user_presave,  rather than user_insert.  https://api.drupal.org/api/drupal/modules!user!user.api.php/function/hook_user_presave/7