function _video_filter_settings

cis7 video_filter.module _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters)
cle7 video_filter.module _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters)
elmsmedia7 video_filter.module _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters)
icor7 video_filter.module _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters)
meedjum_blog7 video_filter.module _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters)
mooc7 video_filter.module _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters)
1 string reference to '_video_filter_settings'
video_filter_filter_info in sites/all/modules/ulmus/video_filter/video_filter.module
Implements hook_filter_info().

File

sites/all/modules/ulmus/video_filter/video_filter.module, line 35
Video filter is a highly flexible and easy extendable filter module to embed any type of video in your site using a simple tag.

Code

function _video_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters) {

  $settings['video_filter_width'] = array(
    '#type' => 'textfield',
    '#title' => t('Default width setting'),
    '#default_value' => isset($filter->settings['video_filter_width']) ? $filter->settings['video_filter_width'] : $defaults['video_filter_width'],
    '#maxlength' => 4,
  );
  $settings['video_filter_height'] = array(
    '#type' => 'textfield',
    '#title' => t('Default height setting'),
    '#default_value' => isset($filter->settings['video_filter_height']) ? $filter->settings['video_filter_height'] : $defaults['video_filter_height'],
    '#maxlength' => 4,
  );
  $settings['video_filter_autoplay'] = array(
    '#type' => 'radios',
    '#title' => t('Default autoplay setting'),
    '#description' => t('Not all video formats support this setting.'),
    '#default_value' => isset($filter->settings['video_filter_autoplay']) ? $filter->settings['video_filter_autoplay'] : $defaults['video_filter_autoplay'],
    '#options' => array(
      0 => t('No'),
      1 => t('Yes'),
    ),
  );
  $settings['video_filter_related'] = array(
    '#type' => 'radios',
    '#title' => t('Related videos setting'),
    '#description' => t('Show "related videos"? Not all video formats support this setting.'),
    '#default_value' => isset($filter->settings['video_filter_related']) ? $filter->settings['video_filter_related'] : $defaults['video_filter_related'],
    '#options' => array(
      0 => t('No'),
      1 => t('Yes'),
    ),
  );

  $settings['video_filter_html5'] = array(
    '#type' => 'radios',
    '#title' => t('Use HTML5'),
    '#description' => t('Use HTML5 if the codec provides it. Makes your videos more device agnostic.'),
    '#default_value' => isset($filter->settings['video_filter_html5']) ? $filter->settings['video_filter_html5'] : $defaults['video_filter_html5'],
    '#options' => array(
      0 => t('No'),
      1 => t('Yes'),
    ),
  );

  return $settings;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.