public function before_delete() { // security (dont delete the first admin) if ($this->id == 1) { Kohana::$log->add(Log::INFO, ':user trying to delete administrator', array(':user_id' => $this->id))->write(); return FALSE; } Observer::notify('user_before_delete', $this); return parent::before_delete(); }