/[drupal]/contributions/modules/iedestroyer/iedestroyer.module
ViewVC logotype

Diff of /contributions/modules/iedestroyer/iedestroyer.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Mon Jul 3 23:20:41 2006 UTC revision 1.5, Mon Nov 6 22:01:03 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: iedestroyer.module,v 1.3 2006/06/04 02:23:33 deekayen Exp $  // $Id: iedestroyer.module,v 1.4 2006/07/03 23:20:41 deekayen Exp $
3    
4  /**  /**
5   * @file   * @file
6   * Display a banner and/or block to convert Internet Explorer users to Firefox   * Display a banner and/or block to convert Internet Explorer users to Firefox
7   *   *
8   * @author David Kent Norman <deekayen -at- deekayen {dot} net>   * @author David Kent Norman
9   * @author Vincent Filby http://www.filbar.org/   * @author Vincent Filby http://www.filbar.org/
10   * @link http://drupal.org/node/66987   * @link http://drupal.org/node/66987
11   * @link http://deekayen.net/   * @link http://deekayen.net/
# Line 25  define('IEDESTROYER_LEVEL', 1); Line 25  define('IEDESTROYER_LEVEL', 1);
25   */   */
26  function iedestroyer_help($section) {  function iedestroyer_help($section) {
27    switch ($section) {    switch ($section) {
     case 'admin/modules#description':  
       return t('Enables the IE Destroyer banner.');  
       break;  
28      case 'admin/block/configure/iedestroyer/0':      case 'admin/block/configure/iedestroyer/0':
29        return t('This block only displays when visitors are using Internet Explorer.');        return t('This block only displays when visitors are using Internet Explorer.');
30        break;        break;
# Line 49  function iedestroyer_init() { Line 46  function iedestroyer_init() {
46    }    }
47  }  }
48    
49    function iedestroyer_menu($maycache) {
50      $items = array();
51      $items[] = array(
52        'path' => 'admin/settings/iedestroyer',
53        'title' => t('IE Destroyer'),
54        'description' => t('Change what type of banner displays.'),
55        'callback' => 'drupal_get_form',
56        'callback arguments' => 'iedestroyer_admin_settings',
57        'access' => user_access('administer site configuration'),
58        'type' => MENU_NORMAL_ITEM
59      );
60      return $items;
61    }
62  /**  /**
63   * Implementation of hook_block().   * Implementation of hook_block().
64   */   */
# Line 82  google_ad_client = "pub-1105343943158891 Line 92  google_ad_client = "pub-1105343943158891
92  google_ad_output = "textlink";  google_ad_output = "textlink";
93  google_ad_format = "ref_text";  google_ad_format = "ref_text";
94  google_cpa_choice = "CAAQidTQgAIaCDFyD7PiBqtPKN2uuIEB";  google_cpa_choice = "CAAQidTQgAIaCDFyD7PiBqtPKN2uuIEB";
95    google_ad_channel = "7588513660";
96  //--></script>  //--></script>
97  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
98  </script>');  </script>');
# Line 102  google_cpa_choice = "CAAQidTQgAIaCDFyD7P Line 113  google_cpa_choice = "CAAQidTQgAIaCDFyD7P
113    }    }
114  }  }
115    
116  function iedestroyer_settings() {  function iedestroyer_admin_settings() {
117    $form = array();    $form = array();
118    
119    $form['iedestroyer_settings'] = array(    $form['iedestroyer_settings'] = array(
# Line 140  google_ad_client = "pub-1105343943158891 Line 151  google_ad_client = "pub-1105343943158891
151  google_ad_output = "textlink";  google_ad_output = "textlink";
152  google_ad_format = "ref_text";  google_ad_format = "ref_text";
153  google_cpa_choice = "CAAQidTQgAIaCDFyD7PiBqtPKN2uuIEB";  google_cpa_choice = "CAAQidTQgAIaCDFyD7PiBqtPKN2uuIEB";
154    google_ad_channel = "7588513660";
155  //--></script>  //--></script>
156  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">  <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
157  </script>');  </script>');
# Line 193  google_cpa_choice = "CAAQidTQgAIaCDFyD7P Line 205  google_cpa_choice = "CAAQidTQgAIaCDFyD7P
205      '#default_value' => variable_get('iedestroyer_level3', _iedestroyer_default_level3()),      '#default_value' => variable_get('iedestroyer_level3', _iedestroyer_default_level3()),
206      '#description' => t('Only configure this script if you want to make changes to the displayed banner. Any occurence of [adsense_button] will be replaced with the referral button code from the Google AdSense settings section of this page.')      '#description' => t('Only configure this script if you want to make changes to the displayed banner. Any occurence of [adsense_button] will be replaced with the referral button code from the Google AdSense settings section of this page.')
207    );    );
208    return $form;    return system_settings_form($form);
209  }  }
210    
211  function iedestroyer_banner() {  function iedestroyer_banner() {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2