$params['weight'] = self::calculateWeight(CRM_Utils_Array::value('parent_id', $params));
}
- if (array_key_exists('permission', $params) && is_array($params['permission'])) {
- $params['permission'] = implode(',', $params['permission']);
- }
-
return self::writeRecord($params);
}
* @deprecated - use API
*/
public static function processRename($nodeID, $label) {
+ CRM_Core_Error::deprecatedFunctionWarning('writeRecord');
self::writeRecord(['id' => $nodeID, 'label' => $label]);
}
* @deprecated - use API
*/
public static function processDelete($nodeID) {
+ CRM_Core_Error::deprecatedFunctionWarning('writeRecord');
self::deleteRecord(['id' => $nodeID]);
}