<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
* note object. the params array could contain additional unused name/value
* pairs
*
- * @param array $params (reference ) an assoc array of name/value pairs
- * @param array $ids associated array with note id
+ * @param array $params (reference) an assoc array of name/value pairs
+ * @param array $ids (deprecated) associated array with note id - preferably set $params['id']
*
* @return object $note CRM_Core_BAO_Note object
* @access public
$childNote = new CRM_Core_DAO_Note();
$childNote->id = $childId;
$childNote->delete();
+ $childNote->free();
$recent[] = $childId;
}
$return = $note->delete();
+ $note->free();
if ($showStatus) {
CRM_Core_Session::setStatus($status, ts('Deleted'), 'success');
}