You are here

function video_preprocess_video_formatter_player in Video 7.2

Implements hook_preprocess_video_formatter_player().

Generic preprocess function for all video theme functions to load some variables.

1 string reference to 'video_preprocess_video_formatter_player'
video_theme_registry_alter in ./video.module
Implements hook_theme_registry_alter().

File

./video.module, line 220
All module hooks implementation can be found in this file.

Code

function video_preprocess_video_formatter_player(array &$variables) {
  if (!isset($variables['autoplay'])) {
    $variables['autoplay'] = (bool) variable_get('video_autoplay', FALSE);
  }
  if (!isset($variables['autobuffering'])) {
    $variables['autobuffering'] = (bool) variable_get('video_autobuffering', TRUE);
  }
}