function theme_filefield_source_remote_element in FileField Sources 7
Same name and namespace in other branches
- 6 sources/remote.inc \theme_filefield_source_remote_element()
Theme the output of the autocomplete field.
1 theme call to theme_filefield_source_remote_element()
- filefield_source_remote_process in sources/
remote.inc - A #process callback to extend the filefield_widget element type.
File
- sources/
remote.inc, line 403 - A FileField extension to allow referencing of existing files.
Code
function theme_filefield_source_remote_element($variables) {
$element = $variables['element'];
$element['url']['#field_suffix'] = drupal_render($element['transfer']);
return '<div class="filefield-source filefield-source-remote clear-block">' . drupal_render($element['url']) . '</div>';
}