function pre_deleteItem() { // Security do not delete root entity if ($this->input['id'] == 0) { return false; } return true; }