You are here

function filefield_paths_variable_temp_location_validate in File (Field) Paths 7

Validate callback for 'Temporary file location' variable.

Parameters

$element:

1 string reference to 'filefield_paths_variable_temp_location_validate'
filefield_paths_variable_info in ./filefield_paths.variable.inc
Implements hook_variable_info().

File

./filefield_paths.variable.inc, line 31
Contains Variable functions for the File (Field) Paths module.

Code

function filefield_paths_variable_temp_location_validate($element) {

  // Add FAPI element keys for standard validation callback.
  $element['#parents'] = array(
    'filefield_paths_temp_location',
  );
  $element['#value'] = $element['value'];

  // Pass element through standard validation callback.
  module_load_include('admin.inc', 'filefield_paths');
  filefield_paths_settings_form_temp_location_validate($element);
}