class CRM_Admin_Form_Setting_Date extends CRM_Admin_Form_Setting {
public $_settings = array(
+ 'dateformatDatetime' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
+ 'dateformatFull' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
+ 'dateformatPartial' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
+ 'dateformatYear' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
+ 'dateformatTime' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
'weekBegins' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
'dateInputFormat' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
'timeInputFormat' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
public function buildQuickForm() {
CRM_Utils_System::setTitle(ts('Settings - Date'));
- $this->addElement('text', 'dateformatDatetime', ts('Complete Date and Time'));
- $this->addElement('text', 'dateformatFull', ts('Complete Date'));
- $this->addElement('text', 'dateformatPartial', ts('Month and Year'));
- $this->addElement('text', 'dateformatYear', ts('Year Only'));
- $this->addElement('text', 'dateformatTime', ts('Time Only'));
-
parent::buildQuickForm();
}
'name' => 'dateformatDatetime',
'prefetch' => 1,
// prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
- 'config_only' => 1,
- //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
+ 'quick_form_type' => 'Element',
+ 'html_type' => 'text',
'default' => '%B %E%f, %Y %l:%M %P',
'add' => '4.3',
- 'title' => 'Complete Date and Time',
+ 'title' => 'Date Format: Complete Date and Time',
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'name' => 'dateformatFull',
'prefetch' => 1,
// prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
- 'config_only' => 1,
- //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
+ 'quick_form_type' => 'Element',
+ 'html_type' => 'text',
'default' => '%B %E%f, %Y',
'add' => '4.3',
- 'title' => 'Complete Date',
+ 'title' => 'Date Format: Complete Date',
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'name' => 'dateformatPartial',
'prefetch' => 1,
// prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
- 'config_only' => 1,
- //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
'type' => 'String',
+ 'quick_form_type' => 'Element',
+ 'html_type' => 'text',
'default' => '%B %Y',
'add' => '4.3',
- 'title' => 'Month and Year',
+ 'title' => 'Date Format: Month and Year',
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'dateformatTime' => array(
'add' => '4.7',
'prefetch' => 1,
- 'config_only' => 1,
'help_text' => NULL,
'is_domain' => 1,
'is_contact' => 0,
'dateformatYear' => array(
'add' => '4.7',
'prefetch' => 1,
- 'config_only' => 1,
'help_text' => NULL,
'is_domain' => 1,
'is_contact' => 0,