You are here

function brightcove_expose_unavailable in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 6.2 brightcove.module \brightcove_expose_unavailable()
  2. 6 brightcove.module \brightcove_expose_unavailable()
  3. 7.2 brightcove.module \brightcove_expose_unavailable()
  4. 7.3 brightcove.module \brightcove_expose_unavailable()
  5. 7.4 brightcove.module \brightcove_expose_unavailable()
  6. 7.5 brightcove.module \brightcove_expose_unavailable()
  7. 7.6 brightcove.module \brightcove_expose_unavailable()

Check if expose unavailability message in case the video is not available.

Return value

Returns a themed message if checks are enabled.

File

./brightcove.module, line 2517
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_expose_unavailable() {
  if (variable_get('brightcove_check_for_unavailable', TRUE) && ($unavailable_message = variable_get('brightcove_status_display_unavailable', 'This video is unavailable for the moment.'))) {
    return theme('brightcove_unavailable_message', [
      'message' => $unavailable_message,
    ]);
  }
  return '';
}