Changeset 33344
- Timestamp:
- 02/23/12 12:11:28 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/cpUniFormPlugin/branches/1.4/lib/widget/sfWidgetFormSchemaFormatterUniForm.php
r33017 r33344 12 12 $errorRowFormatInARow = " <li>%error%</li>\n", 13 13 $namedErrorRowFormatInARow = " <li>%name%: %error%</li>\n", 14 $decoratorFormat = "%content%"; 14 $decoratorFormat = "%content%", 15 $error_warning = "Sorry, this form needs corrections."; 15 16 16 17 protected function getFieldsetToken(sfForm $form, $name = null) { … … 117 118 } 118 119 120 public function setRowInErrorFormat($format) { 121 $this->rowInErrorFormat = $format; 122 } 123 119 124 public function formatErrorRow($errors) { 120 125 if (null === $errors || !$errors) { … … 128 133 129 134 public function getErrorWarning() { 130 return 'Sorry, this form needs corrections.'; 135 return $this->error_warning; 136 } 137 138 public function setErrorWarning($warning) { 139 $this->error_warning = $wargning; 131 140 } 132 141