Answers.Body: <p>I wouldn't do this by editing core files. I would implement the buildForm and postProcess hooks in a module extension.</p>
  
  <p><a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension</a></p>
  
  <p><a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference</a></p>
  
  <p>But having said that I probably also wouldn't add it to a core form, I would make a settings page for my extension, which is just a module extension that implements the "add a basic web form" instructions at the first link.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-26T05:04:41.867Z
Answers.LastActivityDate: 2016-05-26T05:04:41.867Z
Answers.UserDisplayName: Demerit
Body: <p>I want to add a field under <code>Localization &gt; Date Formats</code>. What is the correct procedure to do this? </p>
  
  <p>This is what I tried. I added an entry in <code>Localization.settings.php</code>, <code>CRM/Admin/Form/Setting.php</code>'s <em>$_settings</em> array property and <code>CRM/Core/Config/MagicMerge.php</code> and, added a corresponding record on <code>civicrm_settings</code> table and cleared the cache. The field is not showing up. What am I missing?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-23T09:44:35.873Z
Comments.Text: Did you managed to solve this issue Dilip? Was it to do with caching after all?
Comments.UserDisplayName: John
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-23T09:47:05.973Z
Comments.Text: @John No. :/ I haven't solved this issue yet. I am stuck at another issue. http://civicrm.stackexchange.com/questions/11972/regen-sh-call-to-undefined-function-db-query
Comments.UserDisplayName: Dilip Raj Baral
Tags: <forms><settings><date-preferences>
Title: How to add a field on Date Formats setting form?
ThreadText: # How to add a field on Date Formats setting form?
  
  (Asked by: username_0 on 2016-05-22)
  
  I want to add a field under `Localization > Date Formats`. What is the correct procedure to do this?
  
  This is what I tried. I added an entry in `Localization.settings.php`, `CRM/Admin/Form/Setting.php`'s *$\_settings* array property and `CRM/Core/Config/MagicMerge.php` and, added a corresponding record on `civicrm_settings` table and cleared the cache. The field is not showing up. What am I missing?
  
  **Tags:** forms, settings, date-preferences
  
  > **Comments:**
  > **username_1**: Did you managed to solve this issue Dilip? Was it to do with caching after all?  
  > **username_0**: @username_1 No. :/ I haven't solved this issue yet. I am stuck at another issue. http://civicrm.stackexchange.com/questions/11972/regen-sh-call-to-undefined-function-db-query  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-05-26. Score: 1
  
  I wouldn't do this by editing core files. I would implement the buildForm and postProcess hooks in a module extension.
  
  <https://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension>
  
  <https://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference>
  
  But having said that I probably also wouldn't add it to a core form, I would make a settings page for my extension, which is just a module extension that implements the "add a basic web form" instructions at the first link.
  
  
  ---
  
  