diff options
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/includes/file.inc b/includes/file.inc index 6dc7f88b3..73e75cd4f 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -737,8 +737,7 @@ function file_usage_delete(stdClass $file, $module, $type = NULL, $id = NULL, $c * A file object. * @param $destination * A string containing the destination that $source should be copied to. - * 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. * @param $replace * Replace behavior when the destination file already exists: * - FILE_EXISTS_REPLACE - Replace the existing file. If a managed file with @@ -967,8 +966,7 @@ function file_destination($destination, $replace) { * A file object. * @param $destination * A string containing the destination that $source should be moved to. - * 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. * @param $replace * Replace behavior when the destination file already exists: * - FILE_EXISTS_REPLACE - Replace the existing file. If a managed file with @@ -1755,9 +1753,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 @@ -1823,10 +1821,9 @@ function file_save_data($data, $destination = NULL, $replace = FILE_EXISTS_RENAM * @param $data * A string containing the contents of the file. * @param $destination - * A string containing the destination location. - * This must be a stream wrapper URI. If no value is provided, a - * randomized name will be generated and the file is saved using Drupal's - * default files scheme, usually "public://". + * A string containing the destination location. 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. @@ -2153,8 +2150,7 @@ function drupal_unlink($uri, $context = NULL) { * @see http://drupal.org/node/515192 * * @param $uri - * A string containing the URI to verify. If this value is omitted, - * Drupal's public files directory will be used [public://]. + * A string containing the URI to verify. * * @return * The absolute pathname, or FALSE on failure. |