dev/core#561 Add in deprecation notice on addDateRange funtion
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 20 Mar 2020 05:20:42 +0000 (16:20 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 20 Mar 2020 05:20:42 +0000 (16:20 +1100)
CRM/Core/Form.php

index 0f6cf2020ac813cfb4ab4e798cf1b16d7f1085da..56a724a362cdc773289db07c67e38795c6e8abea 100644 (file)
@@ -1315,6 +1315,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    * @param bool $displayTime
    */
   public function addDateRange($name, $from = '_from', $to = '_to', $label = 'From:', $dateFormat = 'searchDate', $required = FALSE, $displayTime = FALSE) {
+    CRM_Core_Error::deprecatedFunctionWarning('Use CRM_Core_Form::addDatePickerRange insted');
     if ($displayTime) {
       $this->addDateTime($name . $from, $label, $required, ['formatType' => $dateFormat]);
       $this->addDateTime($name . $to, ts('To:'), $required, ['formatType' => $dateFormat]);