You are here

function template_preprocess_wysiwyg_dialog_page in Wysiwyg 5.2

Same name and namespace in other branches
  1. 6.2 wysiwyg.dialog.inc \template_preprocess_wysiwyg_dialog_page()
  2. 7.2 wysiwyg.dialog.inc \template_preprocess_wysiwyg_dialog_page()

Template preprocess function for theme_wysiwyg_dialog_page().

See also

wysiwyg_dialog()

wysiwyg-dialog-page.tpl.php

template_preprocess()

1 call to template_preprocess_wysiwyg_dialog_page()
theme_wysiwyg_dialog_page in ./wysiwyg.dialog.inc
Render a single Wysiwyg (plugin) dialog page. (D5 only)

File

./wysiwyg.dialog.inc, line 40
Wysiwyg dialog page handling functions.

Code

function template_preprocess_wysiwyg_dialog_page(&$variables) {

  // Construct page title
  $head_title = array(
    strip_tags(drupal_get_title()),
    variable_get('site_name', 'Drupal'),
  );
  $variables['head_title'] = implode(' | ', $head_title);
  $variables['base_path'] = base_path();
  $variables['front_page'] = url();

  // @todo Would a breadcrumb make sense / possible at all?
  // $variables['breadcrumb']        = theme('breadcrumb', drupal_get_breadcrumb());
  $variables['head'] = drupal_get_html_head();
  $variables['help'] = theme('help');
  $variables['language'] = $GLOBALS['language'];
  $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr';
  $variables['messages'] = $variables['show_messages'] ? theme('status_messages') : '';
  $variables['site_name'] = theme_get_setting('toggle_name') ? variable_get('site_name', 'Drupal') : '';
  $variables['css'] = drupal_add_css();
  $variables['styles'] = drupal_get_css();
  $variables['scripts'] = drupal_get_js();
  $variables['tabs'] = theme('menu_local_tasks');
  $variables['title'] = drupal_get_title();

  // Closure should be filled last.
  $variables['closure'] = theme('closure');
}