You are here

public static function videojs_utility::getDisplaySettings in Video.js (HTML5 Video Player) 7.3

2 calls to videojs_utility::getDisplaySettings()
videojs_preprocess_videojs in includes/videojs.theme.inc
Preprocess function for videojs.tpl.php.
videojs_uninstall in ./videojs.install
Implements hook_uninstall().

File

includes/videojs.utility.inc, line 122
This file will be used to keep all utility functions.

Class

videojs_utility
Helper functions for the Video.js module.

Code

public static function getDisplaySettings(array $input = array()) {
  $settings = self::getDefaultDisplaySettings();
  if (empty($input)) {
    return $settings;
  }
  foreach ($input as $k => $v) {
    if ($v !== NULL && array_key_exists($k, $settings)) {
      $settings[$k] = $v;
    }
  }
  return $settings;
}