function theme_media_upload_help in D7 Media 7.4
Same name and namespace in other branches
- 7.2 includes/media.fields.inc \theme_media_upload_help()
- 7.3 includes/media.fields.inc \theme_media_upload_help()
Returns HTML for help text.
Parameters
$variables: An associative array containing:
- description: The normal description for this field, specified by the user.
1 theme call to theme_media_upload_help()
- media_field_widget_form in includes/
media.fields.inc - Implements hook_field_widget_form().
File
- includes/
media.fields.inc, line 642 - Provide media selector widget and media field formatters to the fields API.
Code
function theme_media_upload_help($variables) {
$description = $variables['description'];
$descriptions = array();
if (strlen($description)) {
$descriptions[] = $description;
}
return implode('<br />', $descriptions);
}