function _og_role_watchdog_approve_role in Role Watchdog 6
Same name and namespace in other branches
- 6.2 modules/og_role_watchdog/og_role_watchdog.module \_og_role_watchdog_approve_role()
Internal function
Handles role approval.
1 call to _og_role_watchdog_approve_role()
- og_role_watchdog_og in modules/
og_role_watchdog/ og_role_watchdog.module - Implementation of hook_og
File
- modules/
og_role_watchdog/ og_role_watchdog.module, line 198 - Logs changes to user roles.
Code
function _og_role_watchdog_approve_role($rid, $account, $gid) {
$vars = _og_role_watchdog_notification_vars($gid);
$record = _role_watchdog_add_role($rid, array(), $account, ROLE_WATCHDOG_ROLE_APPROVED, $vars);
_og_role_watchdog_write_group_information($record, $gid);
}