You are here

function video_filter_info in Video 7.2

Implements hook_filter_info().

@todo For performance, should allow to cache by default.

File

./video.filters.inc, line 23
Video filter embedded code to add video as filter and using WYSIWYG

Code

function video_filter_info() {
  $filters['video_filter'] = array(
    'title' => t('Converts video tags to embedded code'),
    'description' => t('This filter will convert [content:video] tag into markup.'),
    'process callback' => 'video_filter',
    'tips callback' => 'video_filter_tips',
  );

  // If the WYSIWYG module is enabled, add additional help.
  if (module_exists('wysiwyg')) {
    $filters['video_filter']['description'] .= ' ' . t('This must be enabled for the WYSIWYG integration to work correctly with this text filter.');
  }
  return $filters;
}