You are here

function role_expire_delete_record in Role Expire 6

Same name and namespace in other branches
  1. 7 role_expire.module \role_expire_delete_record()

API function; Delete a record from the database.

Parameters

$rid: Role ID.

$uid: User ID.

3 calls to role_expire_delete_record()
role_expire_cron in ./role_expire.module
Implementation of hook_cron().
role_expire_rules_action_remove_role_expire in ./role_expire.rules.inc
Action: Remove expire time from role
role_expire_user in ./role_expire.module
Implementation of hook_user().

File

./role_expire.module, line 58
Role Expire module

Code

function role_expire_delete_record($uid, $rid) {

  // I wonder whether on every save if we are doing this?.
  db_query("DELETE FROM {role_expire} WHERE uid=%d AND rid = %d", $uid, $rid);
}