You are here

function theme_filefield_source_reference_element in FileField Sources 6

Same name and namespace in other branches
  1. 7 sources/reference.inc \theme_filefield_source_reference_element()

Theme the output of the autocomplete field.

1 theme call to theme_filefield_source_reference_element()
filefield_source_reference_process in sources/reference.inc
A #process callback to extend the filefield_widget element type.

File

sources/reference.inc, line 193
A FileField extension to allow referencing of existing files.

Code

function theme_filefield_source_reference_element($element) {
  $element['autocomplete']['#field_suffix'] = theme('submit', $element['select']);
  return '<div class="filefield-source filefield-source-reference clear-block">' . theme('textfield', $element['autocomplete']) . '</div>';
}