You are here

function _og_role_watchdog_request_role in Role Watchdog 6

Same name and namespace in other branches
  1. 6.2 modules/og_role_watchdog/og_role_watchdog.module \_og_role_watchdog_request_role()

Internal function

Handles role requests.

1 call to _og_role_watchdog_request_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 187
Logs changes to user roles.

Code

function _og_role_watchdog_request_role($rid, $account, $gid) {
  $vars = _og_role_watchdog_notification_vars($gid);
  $record = _role_watchdog_add_role($rid, array(), $account, ROLE_WATCHDOG_ROLE_REQUEST, $vars);
  _og_role_watchdog_write_group_information($record, $gid);
}