function cleantalk_update_70410 in Anti Spam by CleanTalk 7.4
File
- ./
cleantalk.install, line 246 - Install and uninstall functions for the CleanTalk module.
Code
function cleantalk_update_70410(&$sandbox = NULL) {
$roles = user_roles();
asort($roles);
foreach ($roles as $role_id => $role_name) {
if (strpos('administrator', $role_name) === false) {
unset($roles[$role_id]);
}
}
$default_roles = array_keys($roles);
variable_set('cleantalk_roles_exclusions', $default_roles);
}