conf = $extra['conf']; if ($extra['remote_svn']) { $this->fields['svn_username'] = new Pluf_Form_Field_Varchar( array('required' => false, 'label' => __('Repository username'), 'initial' => $this->conf->getVal('svn_username', ''), 'widget_attrs' => array('size' => '15'), )); $this->fields['svn_password'] = new Pluf_Form_Field_Varchar( array('required' => false, 'label' => __('Repository password'), 'initial' => $this->conf->getVal('svn_password', ''), 'widget' => 'Pluf_Form_Widget_PasswordInput', )); } Pluf::loadFunction('Pluf_HTTP_URL_urlForView'); $url = Pluf_HTTP_URL_urlForView('idf_faq').'#webhooks'; $this->fields['webhook_url'] = new Pluf_Form_Field_Url( array('required' => false, 'label' => __('Webhook URL'), 'initial' => $this->conf->getVal('webhook_url', ''), 'help_text' => sprintf(__('Learn more about the post-commit web hooks.'), $url), 'widget_attrs' => array('size' => 35), )); } }