Created
December 18, 2009 21:36
-
-
Save bangpound/259775 to your computer and use it in GitHub Desktop.
show permissions which aren't handled by a feature.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module_load_include('inc', 'features', 'includes/features.user'); | |
$perms = array_keys(_user_features_permission_map()); | |
$defaults = array(); | |
foreach (module_invoke_all('user_default_permissions') as $permission) { | |
$defaults[] = $permission['name']; | |
} | |
foreach (array_diff($perms,$defaults) as $item) { | |
dpm($item); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment