*
* @param array $fields posted values of the form
*
+ * @param $files
+ * @param $self
+ *
* @return array list of errors to be posted back to the form
* @static
* @access public
return empty($errors) ? TRUE : $errors;
}
+ /**
+ * This function sets the default values for the form. MobileProvider that in edit/view mode
+ * the default values are retrieved from the database
+ *
+ * @access public
+ *
+ * @return array
+ */
+ /**
+ * @return array
+ */
function setDefaultValues() {
return $this->_defaults;
}
AND used = %2";
$queryParams = array(
1 => array($this->_contactType, 'String'),
- 2 => array($this->_options[$used], 'String'),
+ 2 => array($values['used'], 'String'),
);
CRM_Core_DAO::executeQuery($query, $queryParams);
// also create an index for this dedupe rule
// CRM-3837
+ CRM_Utils_Hook::dupeQuery($ruleDao, 'dedupeIndexes', $tables);
CRM_Core_BAO_SchemaHandler::createIndexes($tables, 'dedupe_index', $substrLenghts);
//need to clear cache of deduped contacts