function post_deleteFromDB() { $parent = $this->fields['locations_id']; if ($parent) { $changes[0] = '0'; $changes[1] = addslashes($this->getNameID()); $changes[2] = ''; Log::history($parent, 'Location', $changes, $this->getType(), Log::HISTORY_DELETE_SUBITEM); } }