function theme_filefield_source_reference_element in FileField Sources 7
Same name and namespace in other branches
- 6 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 210 - A FileField extension to allow referencing of existing files.
Code
function theme_filefield_source_reference_element($variables) {
$element = $variables['element'];
$element['autocomplete']['#field_suffix'] = drupal_render($element['select']);
return '<div class="filefield-source filefield-source-reference clear-block">' . drupal_render($element['autocomplete']) . '</div>';
}