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

Diff of /contributions/modules/contaxe/contaxe.module

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

revision 1.11, Wed Feb 27 09:16:01 2008 UTC revision 1.12, Wed Feb 27 13:13:10 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: contaxe.module,v 1.10 2008/02/26 17:09:15 salgar Exp $  // $Id: contaxe.module,v 1.11 2008/02/27 09:16:01 salgar Exp $
3    
4  /*  /*
5    http://drupal.org/project/jquery_update    http://drupal.org/project/jquery_update
# Line 1501  function contaxe_nodeapi(&$node, $op, $t Line 1501  function contaxe_nodeapi(&$node, $op, $t
1501      if (!variable_get('contaxe_injector_list_enable', FALSE)) return;      if (!variable_get('contaxe_injector_list_enable', FALSE)) return;
1502      $template = variable_get('contaxe_injector_list_template', CONTAXE_INJECTOR_DEFAULT_LIST_TEMPLATE);      $template = variable_get('contaxe_injector_list_template', CONTAXE_INJECTOR_DEFAULT_LIST_TEMPLATE);
1503      $template = contaxe_process_tags($template);      $template = contaxe_process_tags($template);
1504      $node->content['body']['#value'] = strtr($template, array('%teaser' => $node->teaser));      $node->teaser = $node->content['body']['#value'] = strtr($template, array('%teaser' => $node->teaser));
1505      return;      return;
1506    }    }
1507  }  }
# Line 1538  function contaxe_show_banner($id) { Line 1538  function contaxe_show_banner($id) {
1538    if ($ret === FALSE) return array(FALSE, '<!-- contaxe: rules say we should not display "' . check_plain($id) . '" -->');    if ($ret === FALSE) return array(FALSE, '<!-- contaxe: rules say we should not display "' . check_plain($id) . '" -->');
1539    if ($ret !== TRUE)  return array(TRUE, $ret);    if ($ret !== TRUE)  return array(TRUE, $ret);
1540    
1541      if (($channel = contaxe_get_channel($banner['channel'])) == '') return '';
1542    $url = 'http://www.contaxe.com/go/go.js?t=';    $url = 'http://www.contaxe.com/go/go.js?t=';
1543    $url.= $banner['format'];    $url.= $banner['format'];
1544    $url.= '&c='   . urlencode($channel);    $url.= '&c='   . urlencode($channel);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.2