function _imceimage_image_to_filepath in Imce CCK Image 6.2
Same name and namespace in other branches
- 6 imceimage.module \_imceimage_image_to_filepath()
Helper function to find out file location from a URL.
3 calls to _imceimage_image_to_filepath()
- imceimage_field in ./
imceimage.module - Implements hook_field()
- imceimage_verify in ./
imceimage.module - Page callback for imceimage/verify. Verify that the file is a valid image.
- theme_imceimage_image in ./
imceimage.module - Theme an image
File
- ./
imceimage.module, line 685
Code
function _imceimage_image_to_filepath($url) {
$doc_root = $_SERVER['DOCUMENT_ROOT'];
$file_path = $doc_root . '/' . $url;
return $file_path;
}