You are here

function legal_legal_accepted in Legal 7

Implements hook_legal_accepted().

File

./legal.module, line 879
Module file for Legal.

Code

function legal_legal_accepted($data) {
  if (module_exists('rules')) {
    $user = user_load($data['uid']);
    $conditions = legal_get_conditions($data['language']);
    rules_invoke_event('legal_accepted', $user, $conditions['conditions'], $data['accepted']);
  }
}