/[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.8, Mon Jul 14 17:26:36 2008 UTC revision 1.8.2.1, Tue Jul 15 23:44:12 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: textlinkads.module,v 1.7 2008/06/20 16:18:17 mikejoconnor Exp $  // $Id: textlinkads.module,v 1.8 2008/07/14 17:26:36 mikejoconnor Exp $
3    
4  define('TEXTLINKADS_VERSION', '$Id: textlinkads.module,v 1.7 2008/06/20 16:18:17 mikejoconnor Exp $');  define('TEXTLINKADS_VERSION', '$Id: textlinkads.module,v 1.8 2008/07/14 17:26:36 mikejoconnor Exp $');
5  //define('TEXTLINKADS_MODULE_PATH', drupal_get_path('module', 'textlinkads'));  //define('TEXTLINKADS_MODULE_PATH', drupal_get_path('module', 'textlinkads'));
6    
7  function textlinkads_help($path, $arg) {  function textlinkads_help($path, $arg) {
# Line 669  function _textlinkads_inlinks_add_links_ Line 669  function _textlinkads_inlinks_add_links_
669      $lower_data = strtolower($data);      $lower_data = strtolower($data);
670      //replace any keyword once      //replace any keyword once
671      foreach ($textlinkads_inlinks_links as $keyword => $link) {      foreach ($textlinkads_inlinks_links as $keyword => $link) {
672        if (strpos(strtolower($lower_data), strtolower($keyword))) {        if (strpos(strtolower($lower_data), strtolower($keyword)) !== FALSE) {
673          $start = strpos(strtolower($lower_data), strtolower($keyword));          $start = strpos(strtolower($lower_data), strtolower($keyword));
674          $length = strlen($keyword);          $length = strlen($keyword);
675          $link_text = substr($data, $start, $length);          $link_text = substr($data, $start, $length);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.8.2.1

  ViewVC Help
Powered by ViewVC 1.1.2