You are here

function theme_img_assist_popup in Image Assist 5

Same name and namespace in other branches
  1. 5.3 img_assist.module \theme_img_assist_popup()
  2. 5.2 img_assist.module \theme_img_assist_popup()
  3. 6.2 img_assist.module \theme_img_assist_popup()
  4. 6 img_assist.module \theme_img_assist_popup()

Related topics

File

./img_assist.module, line 1690
Image Assist module

Code

function theme_img_assist_popup($content, $attributes = NULL) {
  $title = drupal_get_title();
  $output = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' . "\n";
  $output .= "<html>\n";
  $output .= "<head>\n";
  $output .= '<title>' . $title . "</title>\n";
  $output .= drupal_get_html_head();
  $output .= drupal_get_css();
  $output .= "</head>\n";
  $output .= '<body' . drupal_attributes($attributes) . ">\n";
  $output .= "<!-- begin content -->\n";
  $output .= l($content, '', array(
    'onclick' => 'javascript:window.close();',
  ), NULL, NULL, FALSE, TRUE);
  $output .= "<!-- end content -->\n";
  $output .= '</body>';
  $output .= '</html>';
  return $output;
}