You are here

function theme_img_assist_popup in Image Assist 6

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

Related topics

File

./img_assist.module, line 1698
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(
    'attributes' => array(
      'onclick' => 'javascript:window.close();',
    ),
    'html' => TRUE,
  ));
  $output .= "<!-- end content -->\n";
  $output .= '</body>';
  $output .= '</html>';
  return $output;
}