/** * Delete the tag for a contact. * * @param array $params * (reference ) an assoc array of name/value pairs. */ public static function del(&$params) { $entityTag = new CRM_Core_BAO_EntityTag(); $entityTag->copyValues($params); $entityTag->delete(); //invoke post hook on entityTag $object = array(0 => array(0 => $params['entity_id']), 1 => $params['entity_table']); CRM_Utils_Hook::post('delete', 'EntityTag', $params['tag_id'], $object); }
/** * Function to delete the tag for a contact * * @param array $params (reference ) an assoc array of name/value pairs * * @return object CRM_Core_BAO_EntityTag object * @access public * @static * */ static function del(&$params) { $entityTag = new CRM_Core_BAO_EntityTag(); $entityTag->copyValues($params); $entityTag->delete(); //return $entityTag; }