self::$_dataToLabels = array(
array('Text' => ts('Text'), 'Select' => ts('Select'),
'Radio' => ts('Radio'), 'CheckBox' => ts('CheckBox'), 'Multi-Select' => ts('Multi-Select'),
- 'AdvMulti-Select' => ts('Advanced Multi-Select'),
+ 'AdvMulti-Select' => ts('Adv Multi-Select (obsolete)'),
'Autocomplete-Select' => ts('Autocomplete Select'),
),
array('Text' => ts('Text'), 'Select' => ts('Select'),
array('Text' => ts('Text'), 'Select' => ts('Select'),
'Radio' => ts('Radio'),
),
- array('TextArea' => ts('TextArea'), 'RichTextEditor' => 'RichTextEditor'),
+ array('TextArea' => ts('TextArea'), 'RichTextEditor' => ts('RichTextEditor')),
array('Date' => ts('Select Date')),
array('Radio' => ts('Radio')),
array('StateProvince' => ts('Select State/Province'), 'Multi-Select' => ts('Multi-Select State/Province')),
public function buildQuickForm() {
if ($this->_gid) {
$this->_title = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_gid, 'title');
- CRM_Utils_System::setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('Add Field')));
+ CRM_Utils_System::setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('New Field')));
$this->assign('gid', $this->_gid);
}
// add buttons
$this->addButtons(array(
array(
- 'type' => 'next',
+ 'type' => 'done',
'name' => ts('Save'),
'isDefault' => TRUE,
),
/**
* global validation rules for the form
*
- * @param array $fields (referance) posted values of the form
+ * @param array $fields posted values of the form
+ *
+ * @param $files
+ * @param $self
*
* @return array if errors then list of errors to be posted back to the form,
* true otherwise
$buttonName = $this->controller->getButtonName();
$session = CRM_Core_Session::singleton();
if ($buttonName == $this->getButtonName('next', 'new')) {
- $msg += '<p>' . ts("Ready to add another.") . '</p>';
+ $msg .= '<p>' . ts("Ready to add another.") . '</p>';
$session->replaceUserContext(CRM_Utils_System::url('civicrm/admin/custom/group/field/add',
'reset=1&action=add&gid=' . $this->_gid
));