function theme_videoftp_widget_file in Video 6.5
Same name and namespace in other branches
- 6.4 types/videoftp/videoftp.theme.inc \theme_videoftp_widget_file()
Custom theme function for VideoFTP upload elements.
This function allows us to put the "Attach" button immediately after the select field by respecting the #field_suffix property.
1 theme call to theme_videoftp_widget_file()
- videoftp_widget_process in types/
videoftp/ videoftp_widget.inc - Process an individual element.
File
- types/
videoftp/ videoftp.theme.inc, line 39 - Theme functions for the videoftp module.
Code
function theme_videoftp_widget_file($element) {
$output = '<div class="filefield-upload clear-block">';
if (isset($element['#field_prefix'])) {
$output .= $element['#field_prefix'];
}
$size = $element['#size'] ? ' size="' . $element['#size'] . '"' : '';
_form_set_class($element, array(
'form-select',
));
$multiple = $element['#multiple'];
$output .= '<select name="' . $element['#name'] . '' . ($multiple ? '[]' : '') . '"' . ($multiple ? ' multiple="multiple" ' : '') . drupal_attributes($element['#attributes']) . ' id="' . $element['#id'] . '" ' . $size . '>' . form_select_options($element) . "</select>\n";
if (isset($element['#field_suffix'])) {
$output .= $element['#field_suffix'];
}
$output .= '</div>';
return theme('form_element', $element, $output);
}