fields['labels_download_predefined'] = new Pluf_Form_Field_Varchar( array('required' => true, 'label' => __('Predefined download labels'), 'initial' => self::init_predefined, 'widget_attrs' => array('rows' => 13, 'cols' => 75), 'widget' => 'Pluf_Form_Widget_TextareaInput', )); $this->fields['labels_download_one_max'] = new Pluf_Form_Field_Varchar( array('required' => false, 'label' => __('Each download may have at most one label with each of these classes'), 'initial' => self::init_one_max, 'widget_attrs' => array('size' => 60), )); $this->conf = $extra['conf']; $this->fields['upload_webhook_url'] = new Pluf_Form_Field_Url( array('required' => false, 'label' => __('Webhook URL'), 'initial' => $this->conf->getVal('upload_webhook_url', ''), 'widget_attrs' => array('size' => 60), )); } }