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

Diff of /contributions/modules/textlinkads/textlinkads.module

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

revision 1.5.2.2, Mon Nov 19 18:08:21 2007 UTC revision 1.5.2.3, Mon Nov 19 18:29:37 2007 UTC
# Line 11  Line 11 
11   *     Module will provide block per key   *     Module will provide block per key
12   */   */
13    
14  define('TEXTLINKADS_VERSION', '$Id: textlinkads.module,v 1.5.2.1 2007/10/03 17:07:21 greggles Exp $');  define('TEXTLINKADS_VERSION', '$Id: textlinkads.module,v 1.5.2.2 2007/11/19 18:08:21 robertDouglass Exp $');
15  define('TEXTLINKADS_MODULE_PATH', drupal_get_path('module', 'textlinkads'));  define('TEXTLINKADS_MODULE_PATH', drupal_get_path('module', 'textlinkads'));
16    
17  function textlinkads_help($section) {  function textlinkads_help($section) {
# Line 206  function textlinkads_admin_settings() { Line 206  function textlinkads_admin_settings() {
206  function textlinkads_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {  function textlinkads_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
207    switch ($op) {    switch ($op) {
208      case 'load':      case 'load':
209        $q = $_GET['q'];        // TODO: This is here for Feedvertising
210        if ($q == 'rss.xml' || $q == 'node/feed') {        //$q = $_GET['q'];
211          $link = theme('textlinkads_rss_ad', textlinkads_next_rss_ad());        //if ($q == 'rss.xml' || $q == 'node/feed') {
212          $node->teaser .= $link;        //  $link = theme('textlinkads_rss_ad', textlinkads_next_rss_ad());
213        }        //  $node->teaser .= $link;
214          //}
215    }    }
216    
217  }  }
# Line 285  function textlinkads_stats_page_show() { Line 286  function textlinkads_stats_page_show() {
286   * theme functions   * theme functions
287   */   */
288    
289  function theme_textlinkads_rss_ad($link) {  //function theme_textlinkads_rss_ad($link) {
290    $advertisement = variable_get('textlinkads_advertisement_word', t('Advertisement'));  //  $advertisement = variable_get('textlinkads_advertisement_word', t('Advertisement'));
291    return "\n\n$advertisement: {$link['rssbeforetext']} <a href='{$link['url']}'>{$link['rsstext']}</a> {$link['rssaftertext']}";  //  return "\n\n$advertisement: {$link['rssbeforetext']} <a href='{$link['url']}'>{$link['rsstext']}</a> {$link['rssaftertext']}";
292  }  //}
293    
294    
295  function theme_textlinkads_ads($links, $key) {  function theme_textlinkads_ads($links, $key) {

Legend:
Removed from v.1.5.2.2  
changed lines
  Added in v.1.5.2.3

  ViewVC Help
Powered by ViewVC 1.1.2