function configuration_user_permissions_update in Configuration Management 7
Submit handler for checking a diff on user permissions.
1 string reference to 'configuration_user_permissions_update'
- configuration_form_user_admin_permissions_alter in observers/
observer.user.inc - Implements hook_form_alter().
File
- observers/
observer.user.inc, line 24 - I'll probably end up putting this code in configuration.user.inc. Just want to keep it separate for now, while I get this working.
Code
function configuration_user_permissions_update(&$form, &$form_state) {
module_load_include('inc', 'configuration', "configuration.export");
// Set a static variable that we can access across this request.
$a =& drupal_static('configuration_from_activestore');
$a = TRUE;
$config = configuration_get_configuration();
module_load_include('inc', 'configuration', "includes/configuration.user");
if (isset($config['user_permission'])) {
configuration_check_user_permission(array_keys($config['user_permission']));
}
configuration_write_export_file();
}