Page tree
Skip to end of metadata
Go to start of metadata

We prepared this document for instructions to setup for a hook call when users cancelled their accounts.

  • Add new callback function to file "Callback.php". 
  • Example
* Action to take when user cancelled their account 
* @param int $iUser 
public function onDeleteUser($iUser) 
    // delete todo tasks 
    $aTodoTasks = $this->database() 
        ->where('user_id = ' . (int)$iUser) 
    foreach ($aTodoTasks as $aTodoTask) {