Index: ie6nomore.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ie6nomore/ie6nomore.module,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 ie6nomore.module
--- ie6nomore.module	9 Dec 2010 22:00:24 -0000	1.1.2.8
+++ ie6nomore.module	11 Feb 2011 03:37:54 -0000
@@ -16,6 +16,12 @@
  */
 
 /**
+ * Global definitions
+ */
+define('IE6NOMORE_TITLE', 'You are using an outdated browser');
+define('IE6NOMORE_DESCRIPTION', 'For a better experience using this site, please upgrade to a modern web browser.');
+
+/**
  * Ensure our CSS and javascript are available.
  * Implementation of hook_init().
  */
@@ -52,14 +58,16 @@ function ie6nomore_theme() {
  */
 function theme_ie6nomore_banner() {
   $path = base_path() . drupal_get_path('module', 'ie6nomore') .'/images';
+  $title = variable_get('ie6nomore_title', IE6NOMORE_TITLE);
+  $desc = check_markup(variable_get('ie6nomore_description', IE6NOMORE_DESCRIPTION), variable_get('ie6nomore_description_format', FILTER_FORMAT_DEFAULT));
 
   $output = '<!--[if lt IE 7]>';
   $output .= '<div id="ie6nomore" class="clear-block">';
   $output .= '<div id="ie6nomore-wrapper">';
   $output .= '  <div id="ie6nomore-warning"><img src="'. $path .'/ie6nomore-warning.jpg" alt="Warning!" /></div>';
   $output .= '  <div id="ie6nomore-message">';
-  $output .= '    <div id="ie6nomore-title">'. t('You are using an outdated browser') .'</div>';
-  $output .= '    <div id="ie6nomore-description">'. t('For a better experience using this site, please upgrade to a modern web browser.') .'</div>';
+  $output .= '    <div id="ie6nomore-title">'. t('@title', array('@title' => $title)) .'</div>';
+  $output .= '    <div id="ie6nomore-description">'. $desc .'</div>';
   $output .= '  </div>';
 
   $output .= theme('ie6nomore_browser', 'ie6nomore-firefox-3.6.png', 'http://www.firefox.com', 'Get Firefox');
@@ -92,4 +100,48 @@ function theme_ie6nomore_browser($image,
  */
 function ie6nomore_preprocess_page(&$vars) {
   $vars['ie6nomore'] = '<!--[if lt IE 7]>'. theme('ie6nomore_banner') .'<![endif]-->';
+}
+
+/**
+ * Implementation of hook_menu
+ */
+function ie6nomore_menu() {
+  $items = array();
+
+  $items['admin/settings/ie6nomore'] = array(
+    'title' => t('IE6 No More'),
+    'description' => t('Settings for ie6 no more.'),
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('ie6nomore_admin'),
+    'access arguments' => array('access administration pages'),
+    'type' => MENU_NORMAL_ITEM,
+   );
+
+  return $items;
+}
+
+/**
+ * Admin form
+ */
+function ie6nomore_admin() {
+  $form = array();
+
+  $form['ie6nomore_title'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Title'),
+    '#default_value' => variable_get('ie6nomore_title', IE6NOMORE_TITLE),
+    '#required' => FALSE,
+  );
+
+  $form['description']['ie6nomore_description'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Description'),
+    '#description' => t('Any HTML markup will be removed.'),
+    '#default_value' => variable_get('ie6nomore_description', IE6NOMORE_DESCRIPTION),
+    '#required' => FALSE,
+  );
+  
+  $form['description']['format'] = filter_form(variable_get('ie6nomore_description_format', FILTER_FORMAT_DEFAULT), NULL, array('ie6nomore_description_format'));
+
+  return system_settings_form($form);
 }
\ No newline at end of file
