*
* @param int $contactId
*
- * @return mixed $event id of created Event
+ * @return int
+ * id of created Event
*/
public static function create($contactId) {
require_once "CRM/Event/BAO/Event.php";
'contact_id' => $contactId,
);
-
$event = CRM_Event_BAO_Event::create($params);
return $event->id;
}
/**
- * Helper function to delete an Event
+ * Helper function to delete an Event.
*
* @param int $eventId
- * @return boolean true if event deleted, false otherwise
+ * @return bool
+ * true if event deleted, false otherwise
*/
public static function delete($eventId) {
return CRM_Event_BAO_Event::del($eventId);
}
+
}