You are here

function js_injector_prepare_directory in JS injector 7.2

Make sure that the js_injector files directory has been created.

Return value

bool TRUE if the directory exists (or was created) and is writable. FALSE otherwise.

2 calls to js_injector_prepare_directory()
js_injector_install in ./js_injector.install
js_injector_requirements in ./js_injector.install
Implements hook_requirements().

File

./js_injector.install, line 156
js_injector.install

Code

function js_injector_prepare_directory() {
  $path = JS_INJECTOR_DIRECTORY_URI;
  return file_prepare_directory($path, FILE_CREATE_DIRECTORY);
}