| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
);
CRM_Utils_System::setTitle(ts('Custom Field Move: %1',
- array(1 => $this->_srcFieldLabel)
- ));
+ array(1 => $this->_srcFieldLabel)
+ ));
$session = CRM_Core_Session::singleton();
$session->pushUserContext(CRM_Utils_System::url('civicrm/admin/custom/group/field', "reset=1&action=browse&gid={$this->_srcGID}"));
}
$customGroup = array(
- '' => ts('- select -')) + $customGroup;
+ '' => ts('- select -'),
+ ) + $customGroup;
$this->add('select',
'dst_group_id',
ts('Destination'),
*/
public static function formRule($fields, $files, $self) {
$self->_dstGID = $fields['dst_group_id'];
- $tmp = CRM_Core_BAO_CustomField::_moveFieldValidate($self->_srcFID, $self->_dstGID);
- $errors = array();
+ $tmp = CRM_Core_BAO_CustomField::_moveFieldValidate($self->_srcFID, $self->_dstGID);
+ $errors = array();
if ($tmp['newGroupID']) {
$errors['dst_group_id'] = $tmp['newGroupID'];
}
$srcUrl = CRM_Utils_System::url('civicrm/admin/custom/group/field', "reset=1&action=browse&gid={$this->_dstGID}");
CRM_Core_Session::setStatus(ts("%1 has been moved to the custom set <a href='%3'>%2</a>.",
array(
- 1 => $this->_srcFieldLabel,
- 2 => $dstGroup,
+ 1 => $this->_srcFieldLabel,
+ 2 => $dstGroup,
3 => $srcUrl,
- )), '', 'success');
+ )), '', 'success');
}
+
}