You are here

function responsivewrappers_filter_info in Responsive wrappers 7

Implements hook_filter_info().

File

./responsivewrappers.module, line 41
Responsive bootstrap wrappers input filter.

Code

function responsivewrappers_filter_info() {
  $filters['bootstrapresponsivewrapper'] = array(
    'title' => t('Responsive wrappers filter'),
    'description' => t('Add Bootstrap responsive classes and wrappers for images, videos and tables.'),
    'settings callback' => '_responsivewrappers_filter_settings',
    'default settings' => array(
      'responsive_iframe' => 1,
      'responsive_iframe_pattern' => '#<iframe.*src=".*(youtube.|vimeo.).*".*>.*</iframe>#Uui',
      'responsive_iframe_aspect_ratio' => 'embed-responsive-16by9',
      'responsive_table' => 1,
      'responsive_image' => 0,
    ),
    'process callback' => '_responsivewrappers_process',
  );
  return $filters;
}