function simple_access_delete_profile in Simple Access 5.2
Same name and namespace in other branches
- 6.2 simple_access.module \simple_access_delete_profile()
- 7.2 simple_access.module \simple_access_delete_profile()
1 call to simple_access_delete_profile()
File
- ./
simple_access.module, line 921 - This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.
Code
function simple_access_delete_profile($pid) {
db_query('DELETE FROM {simple_access_profiles} WHERE pid = %d', $pid);
db_query('DELETE FROM {simple_access_profiles_access} WHERE pid = %d', $pid);
db_query('DELETE FROM {simple_access_profiles_node} WHERE pid = %d', $pid);
}