You are here

function _flashnode_check_settings in Flash Node 5.3

Same name and namespace in other branches
  1. 5.6 flashnode.module \_flashnode_check_settings()
  2. 5.2 flashnode.module \_flashnode_check_settings()
  3. 6.3 flashnode.module \_flashnode_check_settings()
  4. 6.2 flashnode.module \_flashnode_check_settings()

Verify that the flash folders exist and create them if they don't

2 calls to _flashnode_check_settings()
flashnode_admin_settings in ./flashnode.module
Settings callback
flashnode_form in ./flashnode.module
Implementation of hook_form

File

./flashnode.module, line 929

Code

function _flashnode_check_settings() {

  // Build the two relevant paths
  $flashnode_path = file_create_path(variable_get('flashnode_default_path', 'flash'));
  $temp_path = $flashnode_path . '/temp';

  // Check they exist, create if not
  file_check_directory($flashnode_path, FILE_CREATE_DIRECTORY, 'flashnode_default_path');
  file_check_directory($temp_path, FILE_CREATE_DIRECTORY, 'flashnode_default_path');
}