function _video_filter_form

cis7 video_filter.module _video_filter_form()
cle7 video_filter.module _video_filter_form()
elmsmedia7 video_filter.module _video_filter_form()
icor7 video_filter.module _video_filter_form()
meedjum_blog7 video_filter.module _video_filter_form()
mooc7 video_filter.module _video_filter_form()
1 string reference to '_video_filter_form'
video_filter_dashboard_page in sites/all/modules/ulmus/video_filter/video_filter.module
Creates the dashboard.

File

sites/all/modules/ulmus/video_filter/video_filter.module, line 439
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_form() {
  $form['video_filter'] = array(
    '#type' => 'fieldset',
    '#title' => t('Insert Video'),
    '#weight' => 0,
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
    '#attributes' => array('class' => array('clearfix')),
  );

  $form['video_filter']['file_url'] = array(
    '#type' => 'textfield',
    '#title' => t('Video URL'),
    '#maxlength' => 255,
    '#size' => 80,
    '#default_value' => '',
    '#weight' => 1,
  );

  $form['video_filter']['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#maxlength' => 255,
    '#size' => 80,
    '#default_value' => '',
    '#weight' => 2,
  );

  $form['video_filter']['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#maxlength' => 255,
    '#size' => 80,
    '#default_value' => '',
    '#weight' => 3,
  );

  $form['video_filter']['align'] = array(
    '#type' => 'select',
    '#title' => t('Align'),
    '#default_value' => 'none',
    '#options' => array(
      'none' => t('None'),
      'left' => t('Left'),
      'right' => t('Right'),
      'center' => t('Center'),
    ),
    '#weight' => 4,
  );

  $form['video_filter']['autoplay'] = array(
    '#type' => 'checkbox',
    '#title' => t('Autoplay'),
    '#weight' => 5,
  );

  $form['instructions'] = array(
    '#type' => 'fieldset',
    '#title' => t('Instructions'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#attributes' => array('class' => array('clearfix')),
    '#weight' => 97,
  );

  $text = '<p>' . t('Insert a 3rd party video from one of the following providers.') . '</p>';
  $text .= _video_filter_instructions();

  $form['instructions']['text'] = array(
    '#type' => 'item',
    '#markup' => $text,
  );

  $form['cancel'] = array(
    '#type' => 'button',
    '#value' => t('Cancel'),
    '#weight' => 98,
  );

  $form['insert'] = array(
    '#type' => 'button',
    '#value' => t('Insert'),
    '#weight' => 99,
  );

  return $form;
}
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.