You are here

function role_expire_delete_default_duration in Role Expire 7

Same name and namespace in other branches
  1. 6 role_expire.module \role_expire_delete_default_duration()

API function; Delete default duration(s) for a role.

Parameters

$rid: Required. The role_id to remove.

3 calls to role_expire_delete_default_duration()
role_expire_migrate_delete_role in ./role_expire.migrate.inc
Implementation of hook_migrate_delete_role().
role_expire_user_admin_role_submit in ./role_expire.module
Form submit handler invoked by role_expire_form_user_admin_role_alter. Updates default duration in database.
role_expire_user_role_delete in ./role_expire.module
Implements hook_user_role_delete().

File

./role_expire.module, line 187
Role Expire module

Code

function role_expire_delete_default_duration($rid) {
  db_delete('role_expire_length')
    ->condition('rid', $rid)
    ->execute();
}