static function create($params) {
$hook = empty($params['id']) ? 'create' : 'edit';
CRM_Utils_Hook::pre($hook, 'UFMatch', CRM_Utils_Array::value('id', $params), $params);
static function create($params) {
$hook = empty($params['id']) ? 'create' : 'edit';
CRM_Utils_Hook::pre($hook, 'UFMatch', CRM_Utils_Array::value('id', $params), $params);
* object for this user. If the user has new values, we need
* to update the CRM DB with the new values
*
* object for this user. If the user has new values, we need
* to update the CRM DB with the new values
*
- * @param Object $user the drupal user object
- * @param boolean $update has the user object been edited
- * @param $uf
+ * @param Object $user the drupal user object
+ * @param boolean $update has the user object been edited
+ * @param $uf
+ *
+ * @param $ctype
+ * @param bool $isLogin
- * @param Object $user the drupal user object
- * @param string $userKey the id of the user from the uf object
- * @param string $uniqId the OpenID of the user
- * @param string $uf the name of the user framework
- * @param integer $status returns the status if user created or already exits (used for CMS sync)
+ * @param Object $user the drupal user object
+ * @param string $userKey the id of the user from the uf object
+ * @param string $uniqId the OpenID of the user
+ * @param string $uf the name of the user framework
+ * @param integer $status returns the status if user created or already exits (used for CMS sync)
+ *
+ * @param null $ctype
+ * @param bool $isLogin
* Update the email value for the contact and user profile
*
* @param $contactId Int Contact ID of the user
* Update the email value for the contact and user profile
*
* @param $contactId Int Contact ID of the user
static function isEmptyTable() {
$sql = "SELECT count(id) FROM civicrm_uf_match";
return CRM_Core_DAO::singleValueQuery($sql) > 0 ? FALSE : TRUE;
static function isEmptyTable() {
$sql = "SELECT count(id) FROM civicrm_uf_match";
return CRM_Core_DAO::singleValueQuery($sql) > 0 ? FALSE : TRUE;
static function isDuplicateUser($email) {
$session = CRM_Core_Session::singleton();
$contactID = $session->get('userID');
static function isDuplicateUser($email) {
$session = CRM_Core_Session::singleton();
$contactID = $session->get('userID');