From b34b2ab8c9c49df53e73310b9179683b0b1ceea3 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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/includes/file.inc b/includes/file.inc
index 4750ff481fe297ea9581782b1f71ba9207d8043c..9e97801ef3d028a73daf06c99b53a086d09cc00a 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -1755,9 +1755,9 @@ function file_validate_image_resolution(stdClass $file, $maximum_dimensions = 0,
  * @param $data
  *   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://".
+ *   A string containing the destination URI. 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

