You are here

function linkimagefield_form_check_directory in Link Image Field 5

Wrapper function for linkimagefield_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 'linkimagefield_form_check_directory'
linkimagefield_widget_settings in ./linkimagefield.module
Implementation of hook_widget_settings().

File

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

Code

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