*
* @param string $_accountId account id
* @param string $_status status to set
- * @return array with success flag
+ * @return int
*/
public function setAccountStatus($_accountId, $_status)
{
$groupsController->removeGroupMember($groupId, $accountId);
}
- if (Tinebase_Application::getInstance()->isInstalled('Addressbook') === true && !empty($oldUser->contact_id)) {
- $this->_deleteContact($oldUser->contact_id);
- }
-
$this->_userBackend->deleteUser($accountId);
}
}
return $contact;
}
-
- /**
- * delete contact associated with user
- *
- * @param string $_contactId
- */
- protected function _deleteContact($_contactId)
- {
- $contactsBackend = Addressbook_Backend_Factory::factory(Addressbook_Backend_Factory::SQL);
-
- $contactsBackend->delete($_contactId);
- }
}