ie8.js mini module

  1. <?php
  2.  
  3. /**
  4. * Author: Nicolas Borda - http://nic.ipwa.net
  5. * Display help and module information
  6. * This module adds to your site the ie8 JavaScript library from Google Code
  7. *
  8. */
  9. function ie8_help($section = '') {
  10.   $output = '';
  11.   switch ($section) {
  12.     case "admin/help#ie8":
  13.       $output = '<p>'.  t("Includes the ie8 JavaScript library to make IE 5 - 6 behave like a standards compliant broweser."). '</p>';
  14.       break;
  15.   }
  16.   return $output;
  17. } // function ie8_help
  18.  
  19. /**
  20.  * Implementation of hook_menu
  21.  */
  22. function ie8_menu($may_cache) {
  23.   $items = array();
  24.   if (!$may_cache) {
  25.     $html = '<script type="text/javascript" src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js"></script>';
  26.     drupal_set_html_head($html);
  27.   }
  28.   return $items;
  29. }