You are here

function activity_buddylist in Activity 5

Implementation of hook_buddylist_api()

File

includes/buddylist.inc, line 25

Code

function activity_buddylist() {
  global $user;
  $args = func_get_args();
  $action = $args[0];
  $type = '';
  $token = array(
    'user-id' => $user->uid,
    'user-name' => $user->name,
    'buddy-id' => $args[1]->uid,
    'buddy-name' => $args[1]->name,
  );
  activity_insert('buddylist', $type, $action, $token);
}