function role_watchdog_update_6130 in Role Watchdog 6
Same name and namespace in other branches
- 6.2 role_watchdog.install \role_watchdog_update_6130()
Update from 6.x-1.x to 6.x-1.3. Change superuser ID constant.
File
- ./
role_watchdog.install, line 91 - Install file for Role watchdog.
Code
function role_watchdog_update_6130() {
$ret = array();
$notify_roles = variable_get('role_watchdog_notify_roles', array());
if (isset($notify_roles[-1])) {
unset($notify_roles[-1]);
$notify_roles[ROLE_WATCHDOG_SUPERUSER_RID] = ROLE_WATCHDOG_SUPERUSER_RID;
variable_set('role_watchdog_notify_roles', $notify_roles);
$ret[] = array(
'success' => TRUE,
'query' => t("Superuser ID constant updated in notify roles settings."),
);
}
return $ret;
}