You are here

function clamav_elements in ClamAV 6

Implementation of hook_elements().

File

./clamav.module, line 77
Integrate ClamAV to allow uploaded files to be scanned for viruses.

Code

function clamav_elements() {
  $elements = array();

  // support the core 'file' FAPI element.
  if (variable_get('clamav_enable_element_file', TRUE)) {
    $elements['file']['#element_validate'] = array(
      'clamav_elements_file_validate',
    );
  }
  return $elements;
}