You are here

function emthumb_form_check_directory in Embedded Media Field 6

Same name and namespace in other branches
  1. 5 contrib/emthumb/emthumb.module \emthumb_form_check_directory()
  2. 6.3 contrib/emthumb/emthumb.module \emthumb_form_check_directory()
  3. 6.2 contrib/emthumb/emthumb.module \emthumb_form_check_directory()

Wrapper function for emthumb_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 'emthumb_form_check_directory'
emthumb_emfield_widget_settings_extra in contrib/emthumb/emthumb.module
This provides extra widget settings to emfields. A checkbox to allow custom thumbnails, max resolution, image path, allow custom alt tags, allow custom title tags.

File

contrib/emthumb/emthumb.module, line 434
Allows for custom thumbnail overrides to Embedded Media Field.

Code

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