function template_preprocess_emvideo_modal_iframe in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/emvideo.theme.inc \template_preprocess_emvideo_modal_iframe()
 - 6.2 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 445  - This defines the various theme functions for Embedded Video Field (emvideo).
 
Code
function template_preprocess_emvideo_modal_iframe(&$variables) {
  $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');
}