/**
  * Delete activity target record
  *
  * @param int    $id  activity id
  *
  * @return null
  * @access public
  */
 public static function deleteActivityTarget($activityId)
 {
     $target = new CRM_Activity_BAO_ActivityTarget();
     $target->activity_id = $activityId;
     $target->delete();
 }
Ejemplo n.º 2
0
 /**
  * Delete activity target record
  *
  * @param int    $id  activity id
  *
  * @return null
  * @access public
  */
 public function deleteActivityTarget($activityId)
 {
     require_once 'CRM/Activity/BAO/ActivityTarget.php';
     $target = new CRM_Activity_BAO_ActivityTarget();
     $target->activity_id = $activityId;
     $target->delete();
 }