<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*
*/
-/**r
- * This class generates form components for the display preferences
- *
+/**
+ * This class generates form components for the display preferences.
*/
class CRM_Admin_Form_Preferences_Display extends CRM_Admin_Form_Preferences {
- function preProcess() {
+ public function preProcess() {
CRM_Utils_System::setTitle(ts('Settings - Display Preferences'));
$this->_varNames = array(
- CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME =>
- array(
+ CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME => array(
'contact_view_options' => array(
'html_type' => 'checkboxes',
'title' => ts('Viewing Contacts'),
/**
* @return array
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = parent::setDefaultValues();
parent::cbsDefaultValues($defaults);
$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;
* Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
$wysiwyg_options = array('' => ts('Textarea')) + CRM_Core_OptionGroup::values('wysiwyg_editor');
cj("#crm-preferences-display-form-block-wysiwyg_input_format").hide()
}';
- $formats = filter_formats();
- $format_options = array();
+ $formats = filter_formats();
+ $format_options = array();
foreach ($formats as $id => $format) {
$format_options[$id] = $format->name;
}
/**
* Process the form submission
*
- * @access public
*
* @return void
*/
$this->postProcessCommon();
}
}
-