You are here

function activity_user_delete in Activity 7

Implements hook_user_delete().

File

./activity.module, line 658
Records Activity across the site and surfaces that to Views.

Code

function activity_user_delete($account) {
  $aids = db_query("SELECT aid FROM {activity} WHERE uid = :uid", array(
    ":uid" => $account->uid,
  ))
    ->fetchCol();
  activity_delete($aids);
}