From bcc9a4e5ae7a1259ae54e05a0552862ab9350ad5 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Sat, 18 Jun 2011 01:59:35 -0400
Subject: [PATCH] Issue #1192482 by pillarsdotnet: Fix documentation of file_save_data() to match code, using example from file_unmanaged_save_data() docs.

---
 includes/file.inc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/includes/file.inc b/includes/file.inc
index 4750ff481fe297ea9581782b1f71ba9207d8043c..7213750bd90e63501b8819922bd380fa108610c7 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -1756,8 +1756,9 @@ function file_validate_image_resolution(stdClass $file, $maximum_dimensions = 0,
  *   A string containing the contents of the file.
  * @param $destination
  *   A string containing the destination URI.
- *   This must be a stream wrapper URI. If this value is omitted, Drupal's
- *   default files scheme will be used, usually "public://".
+ *   This must be a stream wrapper URI. If no value is provided, a randomized
+ *   name will be generated and the file will be saved using Drupal's default
+ *   files scheme, usually "public://".
  * @param $replace
  *   Replace behavior when the destination file already exists:
  *   - FILE_EXISTS_REPLACE - Replace the existing file. If a managed file with
-- 
1.7.4.1

