You are here

function role_expire_user_role_delete in Role Expire 7

Implements hook_user_role_delete().

File

./role_expire.module, line 251
Role Expire module

Code

function role_expire_user_role_delete($role) {

  // Delete the duration row for that role if exists.
  role_expire_delete_default_duration($role->rid);

  // Delete all expire information for that role.
  role_expire_delete_role_records($role->rid);
}