/** * Called by the form when adding this field to its list. * Override in descendants to implement custom behavior. * @param FORM $form */ public function added_to_form($form) { $this->_uploader = $form->uploader(); $this->_form = $form; $form->add_upload_field($this); }