function user_permission_configuration_export_options in Configuration Management 7
Implements hook_configuration_export_options().
1 call to user_permission_configuration_export_options()
File
- includes/
configuration.user.inc, line 45
Code
function user_permission_configuration_export_options() {
$modules = array();
$module_info = system_get_info('module');
foreach (module_implements('permission') as $module) {
$modules[$module_info[$module]['name']] = $module;
}
ksort($modules);
$options = array();
foreach ($modules as $display_name => $module) {
if ($permissions = module_invoke($module, 'permission')) {
foreach ($permissions as $perm => $perm_item) {
$options[$perm] = strip_tags("{$display_name}: {$perm_item['title']}");
}
}
}
return $options;
}