conf = $extra['conf']; $ak = array('downloads_access_rights' => __('Downloads'), 'source_access_rights' => __('Source'), 'issues_access_rights' => __('Issues'),); foreach ($ak as $key=>$label) { $this->fields[$key] = new Pluf_Form_Field_Varchar( array('required' => true, 'label' => $label, 'initial' => $this->conf->getVal($key, 'all'), 'widget_attrs' => array('choices' => array( __('Open to all') => 'all', __('Signed in users') => 'login', __('Project members') => 'members', __('Project owners') => 'owners', __('Closed') => 'none', ) ), 'widget' => 'Pluf_Form_Widget_SelectInput', )); } } }