system_check_directory

Versions
4.7 – 7
system_check_directory($form_element)

Checks the existence of the directory specified in $form_element. This function is called from the system_view_general form to check both the file_directory_path and file_directory_temp directories. If validation fails, the form element is flagged with an error from within the file_check_directory function.

Parameters

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

Code

modules/system.module, line 506

<?php
function system_check_directory($form_element) {
  file_check_directory($form_element['#value'], FILE_CREATE_DIRECTORY, $form_element['#parents'][0]);
  return $form_element;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.