/** * This function is to retrieve the date range - relative or absolute * and assign it to the form * @param object $form - the form the dates should be added to * @param string $fieldName * @param integer $count * @param string $from * @param string $to * @param string $fromLabel * @param boolean $required * @param array $operators Additional value pairs to add * @param string $dateFormat * @param string $displayTime * * * @static * @access public */ static function buildDateRange(&$form, $fieldName, $count = 1, $from = '_from', $to = '_to', $fromLabel = 'From:', $required = FALSE, $operators = array(), $dateFormat = 'searchDate', $displayTime = FALSE) { $selector = CRM_Core_Form_Date::returnDateRangeSelector($form, $fieldName, $count, $from, $to, $fromLabel, $required, $operators, $dateFormat, $displayTime); CRM_Core_Form_Date::addDateRangeToForm($form, $fieldName, $selector, $from, $to, $fromLabel, $required, $dateFormat, $displayTime); }