function brightcove_expose_unavailable in Brightcove Video Connect 7.2
Same name and namespace in other branches
- 6.2 brightcove.module \brightcove_expose_unavailable()
- 6 brightcove.module \brightcove_expose_unavailable()
- 7.7 brightcove.module \brightcove_expose_unavailable()
- 7.3 brightcove.module \brightcove_expose_unavailable()
- 7.4 brightcove.module \brightcove_expose_unavailable()
- 7.5 brightcove.module \brightcove_expose_unavailable()
- 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 332 - 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', array(
'message' => $unavailable_message,
));
}
return '';
}