public function edit($field) { // custom code $this->fielddata($field, "edittimestamp", time()); return parent::edit($field); }