You are here

function imagefield_form_check_directory in ImageField 5

Wrapper function for imagefield_check_directory that accepts a form element to validate - if user specified one. Won't allow form submit unless the directory exists & is writable

Parameters

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

1 string reference to 'imagefield_form_check_directory'
imagefield_widget_settings in ./imagefield.module
Implementation of hook_widget_settings().

File

./imagefield.module, line 291
Defines an image field type. imagefield uses content.module to store the fid, and the drupal files table to store the actual file data.

Code

function imagefield_form_check_directory($form_element) {
  if (!empty($form_element['#value'])) {
    imagefield_check_directory($form_element['#value'], $form_element);
  }
  return $form_element;
}