function process() { $this->title = "Reports: {$this->field->fullname}"; if (!$this->field) { error_exit("That field does not exist"); } $this->template_name = 'pages/field/reports.tpl'; $this->smarty->assign('reports', FieldReport::load_many(array('field_id' => $this->field->fid, '_order' => 'created DESC'))); return true; }