You are here

function heartbeat_user in Heartbeat 6.4

Implementation of hook_user().

File

./heartbeat.module, line 416

Code

function heartbeat_user($type, $edit, &$account, $category = NULL) {
  switch ($type) {
    case 'delete':
      db_query("DELETE FROM {heartbeat_activity} WHERE uid = %d OR uid_target = %d ", $account->uid, $account->uid);
      break;
    case 'view':
      break;
    case 'form':
      if ($category == 'account' && user_access('maintain own activity', $account)) {
        $form['heartbeat_activity_settings_select'] = _theme_user_message_select_form(t('Heartbeat activity settings'), isset($edit['heartbeat_activity_settings']) ? $edit['heartbeat_activity_settings'] : NULL);
      }
      return $form;
  }
}