You are here

function og_permissions_delete_by_module in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og.module \og_permissions_delete_by_module()

Delete all permissions defined by a module.

Parameters

$module: Array with the modules name.

See also

og_modules_uninstalled()

1 call to og_permissions_delete_by_module()
og_modules_uninstalled in ./og.module
Implements hook_modules_uninstalled().

File

./og.module, line 2691
Enable users to create and manage groups with roles and permissions.

Code

function og_permissions_delete_by_module($modules = array()) {
  db_delete('og_role_permission')
    ->condition('module', $modules, 'IN')
    ->execute();
}