fields['project_labels'] = new Pluf_Form_Field_Varchar( array('required' => true, 'label' => __('Predefined project labels'), 'initial' => self::init_project_labels, 'widget_attrs' => array('rows' => 13, 'cols' => 75), 'widget' => 'Pluf_Form_Widget_TextareaInput', )); } public function clean_project_labels() { $labels = preg_split("/\s*\n\s*/", $this->cleaned_data['project_labels'], -1, PREG_SPLIT_NO_EMPTY); for ($i=0; $i