You are here

function filefield_sources_element_info in FileField Sources 7

Implements hook_element_info().

File

./filefield_sources.module, line 19
Extend FileField to allow files from multiple sources.

Code

function filefield_sources_element_info() {
  $elements = array();
  $elements['managed_file']['#process'] = array(
    'filefield_sources_field_process',
  );
  $elements['managed_file']['#pre_render'] = array(
    'filefield_sources_field_pre_render',
  );
  $elements['managed_file']['#element_validate'] = array(
    'filefield_sources_field_validate',
  );
  $elements['managed_file']['#file_value_callbacks'] = array(
    'filefield_sources_field_value',
  );
  return $elements;
}