You are here

function _video_process_plugin in Video 6.5

2 string references to '_video_process_plugin'
video_ctools_plugin_filesystem in ./video.module
Implementation of hook_ctools_plugin_type().
video_ctools_plugin_transcoder in ./video.module
Implementation of hook_ctools_plugin_type().

File

./video.module, line 770
Main file of the Video module.

Code

function _video_process_plugin(&$plugin, $info) {
  if (!isset($plugin['class'])) {
    $plugin['class'] = $plugin['name'];
  }
  if (!class_exists($plugin['class']) && is_file($plugin['path'] . '/' . $plugin['file'])) {
    require_once $plugin['path'] . '/' . $plugin['file'];
  }
  $interfacename = 'video_' . $info['type'];
  $plugin['valid'] = class_exists($plugin['class']) && in_array($interfacename, class_implements($plugin['class']));
}