You are here

function template_preprocess_imagepicker in Image Picker 6.2

Same name and namespace in other branches
  1. 7 imagepicker.module \template_preprocess_imagepicker()

File

./imagepicker.module, line 1281
Enables permitted roles to upload images for insertion into configured nodes.

Code

function template_preprocess_imagepicker(&$variables) {
  global $language;
  if (module_exists('admin_menu')) {
    admin_menu_suppress();
  }
  $variables['head_title'] = drupal_get_title() ? strip_tags(drupal_get_title()) : variable_get('site_name', 'Drupal');
  $variables['styles'] = drupal_get_css();
  $variables['scripts'] = drupal_get_js();

  // fix jquery version thing in the iframe
  if (module_exists('jquery_update')) {
    jquery_update_preprocess_page($variables);
  }
  $variables['tabs'] = theme('menu_local_tasks');
  $variables['messages'] = imagepicker_strip_messages(theme('status_messages'));
  $variables['language'] = $language;
}