private function ForumAccessTestCase::testForumAccessDeletePermissionsUser in Forum Access 6
This function deletes the user permissions for a specific from the database
1 call to ForumAccessTestCase::testForumAccessDeletePermissionsUser()
- ForumAccessTestCase::testForumAccessCreateUser in ./
forum_access.test - Wrapper function for drupalCreateUser
File
- ./
forum_access.test, line 1325 - Test file for forum_access.module.
Class
- ForumAccessTestCase
- This is the base class for forum access testing.
Code
private function testForumAccessDeletePermissionsUser($uid = 0) {
if ($uid > 0) {
db_query("UPDATE {permission} SET perm = '' WHERE rid IN (SELECT rid FROM {users_roles} WHERE uid = %d)", $uid);
}
}