Move Email, Address, etc. is_primary handling on delete to a hook
[civicrm-core.git] / CRM / Core / BAO / OpenID.php
index 33a7c269fc3c4292a2a426fd9413b7cb28e48bf7..2b16d2c702f68013df3c767e767177441fc37f14 100644 (file)
@@ -121,12 +121,14 @@ ORDER BY
   /**
    * Call common delete function.
    *
-   * @param int $id
+   * @see \CRM_Contact_BAO_Contact::on_hook_civicrm_post
    *
+   * @param int $id
+   * @deprecated
    * @return bool
    */
   public static function del($id) {
-    return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('OpenID', $id);
+    return (bool) self::deleteRecord(['id' => $id]);
   }
 
 }