You are here

function _asset_file_check_directory in Asset 5.2

#after_build handler for asset_file_directory_path form element. Checks the existence of the directory specified in $form_element.

Parameters

$form_element: The form element containing the name of the directory to check.

Related topics

1 string reference to '_asset_file_check_directory'
asset_admin_file_settings in ./asset.module
Menu Callback for admin/settings/asset/file

File

./asset.module, line 216
Main module.

Code

function _asset_file_check_directory($form_element) {
  $dir = file_directory_path() . '/' . $form_element['#value'];
  file_check_directory($dir, FILE_CREATE_DIRECTORY, $form_element['#parents'][0]);
  return $form_element;
}