function _user_features_permission_map in Features 6
Generate a perm to module mapping.
1 call to _user_features_permission_map()
- user_permission_features_export in includes/
features.user.inc - Implementation of hook_features_export().
File
- includes/
features.user.inc, line 226
Code
function _user_features_permission_map($reset = FALSE) {
static $map;
if (!isset($map) || $reset) {
$map = array();
foreach (module_implements('perm') as $module) {
if ($permissions = module_invoke($module, 'perm')) {
foreach ($permissions as $permission) {
$map[$permission] = $module;
}
}
}
}
return $map;
}