You are here

function filefield_elements in FileField 6.2

Same name and namespace in other branches
  1. 6.3 filefield.module \filefield_elements()

Implementation of hook_elements().

File

./filefield.module, line 71

Code

function filefield_elements() {
  $elements = array();
  $elements['filefield_file_upload'] = array(
    '#input' => TRUE,
    '#process' => array(
      'filefield_file_upload_process',
    ),
    '#element_validate' => array(),
    // later filled with 'filefield_file_upload_validate'
    '#value_callback' => 'filefield_file_upload_value',
    '#replaced_file' => NULL,
  );
  $elements['filefield_file_edit'] = array(
    '#input' => TRUE,
    '#process' => array(
      'filefield_file_edit_process',
    ),
    '#value_callback' => 'filefield_file_edit_value',
  );
  $elements['filefield_generic_edit'] = array(
    '#input' => TRUE,
    '#process' => array(
      'filefield_generic_edit_process',
    ),
  );
  return $elements;
}