function textimage_directory_check in Textimage 7.2
Same name and namespace in other branches
- 5.2 textimage.module \textimage_directory_check()
- 5 textimage.module \textimage_directory_check()
- 6.2 textimage.module \textimage_directory_check()
Create the image directory relative to the 'files' dir.
(if user specified one) Won't allow form submit unless the directory exists & is writable
Parameters
string $directory_path: String containing the path of the directory to check.
1 call to textimage_directory_check()
- textimage_save_image in ./
textimage.module - Todo.
File
- ./
textimage.module, line 625 - Provides text to image manipulations.
Code
function textimage_directory_check($directory_path) {
// Create each directory necessary if it doesn't exist.
$directory_path = drupal_dirname($directory_path);
if (!file_prepare_directory($directory_path, FILE_CREATE_DIRECTORY)) {
return FALSE;
}
return TRUE;
}