You are here

function theme_media_upload_help in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 includes/media.fields.inc \theme_media_upload_help()
  2. 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 616
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);
}