CRM_Utils_System::setTitle(ts('Settings - Display Preferences'));
if (defined('CIVICRM_ACTIVITY_ASSIGNEE_MAIL') && CIVICRM_ACTIVITY_ASSIGNEE_MAIL) {
- CRM_Core_Session::setStatus(ts('Your civicrm.settings.php file contains CIVICRM_ACTIVITY_ASSIGNEE_MAIL but this constant is no longer used. Please remove this from your config file and set your "Notify Activity Assignees" preference below.'), ts("Deprecated Constant"), "alert");
+ CRM_Core_Session::setStatus(ts('Your civicrm.settings.php file contains CIVICRM_ACTIVITY_ASSIGNEE_MAIL but this
+ constant is no longer used. Please remove this from your config file and set your "Notify Activity Assignees"
+ preference below.'), ts("Deprecated Constant"), "alert");
}
$this->_varNames = array(
$defaults['editor_id'] = $this->_config->editor_id;
}
if (empty($this->_config->display_name_format)) {
- $defaults['display_name_format'] = "{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}";
+ $defaults['display_name_format'] =
+ "{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}";
}
else {
$defaults['display_name_format'] = $this->_config->display_name_format;
}
$config = CRM_Core_Config::singleton();
- if ($config->userSystem->is_drupal == '1' &&
- module_exists("wysiwyg")
- ) {
+ if ($config->userSystem->is_drupal == '1' && module_exists("wysiwyg")) {
$defaults['wysiwyg_input_format'] = variable_get('civicrm_wysiwyg_input_format', 0);
}
* @access public
*/
public function buildQuickForm() {
- $drupal_wysiwyg = FALSE;
$wysiwyg_options = array('' => ts('Textarea')) + CRM_Core_PseudoConstant::wysiwygEditor();
$config = CRM_Core_Config::singleton();
}
$drupal_wysiwyg = FALSE;
- if (!$config->userSystem->is_drupal ||
- !module_exists("wysiwyg")
- ) {
+ if (!$config->userSystem->is_drupal || !module_exists("wysiwyg")) {
unset($wysiwyg_options[4]);
}
else {
- $extra['onchange'] = 'if (this.value==4) { cj("#crm-preferences-display-form-block-wysiwyg_input_format").show(); } else { cj("#crm-preferences-display-form-block-wysiwyg_input_format").hide() }';
+ $extra['onchange'] = '
+ if (this.value==4) {
+ cj("#crm-preferences-display-form-block-wysiwyg_input_format").show();
+ }
+ else {
+ cj("#crm-preferences-display-form-block-wysiwyg_input_format").hide()
+ }';
$formats = filter_formats();
$format_options = array();
if ($drupal_wysiwyg) {
$this->addElement('select', 'wysiwyg_input_format', ts('Input Format'), $format_options, NULL);
}
+
$editOptions = CRM_Core_OptionGroup::values('contact_edit_options', FALSE, FALSE, FALSE, 'AND v.filter = 0');
$this->assign('editOptions', $editOptions);
}
$config = CRM_Core_Config::singleton();
- if ($config->userSystem->is_drupal == '1' &&
- module_exists("wysiwyg")
- ) {
+ if ($config->userSystem->is_drupal == '1' && module_exists("wysiwyg")) {
variable_set('civicrm_wysiwyg_input_format', $this->_params['wysiwyg_input_format']);
}