/** * Delete a user * * @param int $uid * @return bool|null Null for no-action * @api */ public function deleteUser($uid) { return parent::deleteUser($uid); }
/** * Delete a user * * @param int $uid * @return bool|null|string[] Null for no-action * @api */ public function deleteUser($uid) { if (!$uid) { return false; } $error = array(); $result = parent::deleteUser($uid); if (false === $result) { $error[] = 'account'; } $status = $this->deleteProfile($uid); if (!$status) { $error[] = 'profile'; } $status = $this->deleteCompound($uid); if (!$status) { $error[] = 'compound'; } /* $status = $this->deleteCustom($uid); if (!$status) { $error[] = 'custom'; } */ return $error ? $error : $result; }