You are here

function template_preprocess_emvideo_modal_iframe in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/emvideo.theme.inc \template_preprocess_emvideo_modal_iframe()
  2. 6 contrib/emvideo/emvideo.theme.inc \template_preprocess_emvideo_modal_iframe()

Display the video in an iFrame.

Parameters

$content: The video to display. @return The output to print directly, including HTML/Head/Body tags.

File

contrib/emvideo/emvideo.theme.inc, line 470
This defines the various theme functions for Embedded Video Field (emvideo).

Code

function template_preprocess_emvideo_modal_iframe(&$variables) {

  // Tell admin, admin_menu, etc. to supress their output.
  module_invoke_all('suppress');
  $variables['language'] = $GLOBALS['language'];
  $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr';

  // Construct page title
  if (drupal_get_title()) {
    $variables['head_title'] = array(
      strip_tags(drupal_get_title()),
      variable_get('site_name', 'Drupal'),
    );
  }
  else {
    $variables['head_title'] = array(
      variable_get('site_name', 'Drupal'),
    );
    if (variable_get('site_slogan', '')) {
      $variables['head_title'][] = variable_get('site_slogan', '');
    }
  }
  $variables['head_title'] = implode(' | ', $variables['head_title']);
  $variables['head'] = drupal_get_html_head();
  $variables['css'] = drupal_add_css();
  $variables['styles'] = drupal_get_css();
  $variables['scripts'] = drupal_get_js();
  $variables['closure'] = theme('closure');
}