/[drupal]/contributions/modules/autotagging/modules/autotagging_tagthenet/autotagging_tagthenet.module
ViewVC logotype

Diff of /contributions/modules/autotagging/modules/autotagging_tagthenet/autotagging_tagthenet.module

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

revision 1.4, Wed Jul 22 18:24:08 2009 UTC revision 1.5, Fri Jul 24 17:30:25 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autotagging_tagthenet.module,v 1.3 2009/07/07 21:25:07 acstewart Exp $  // $Id: autotagging_tagthenet.module,v 1.4 2009/07/22 18:24:08 acstewart Exp $
3    
4  /*  /*
5   * @file autotagging_tagthenet.module   * @file autotagging_tagthenet.module
# Line 14  function autotagging_tagthenet_autotaggi Line 14  function autotagging_tagthenet_autotaggi
14  }  }
15    
16  /** implementation of hook_autotagging_api_update */  /** implementation of hook_autotagging_api_update */
17  function autotagging_tagthenet_autotagging_api_update(&$node = NULL, &$text = NULL) {  function autotagging_tagthenet_autotagging_api_update(&$node, &$text) {
18    return autotagging_tagthenet_autotagging_api_insert($node, $text);    return autotagging_tagthenet_autotagging_api_insert($node, $text);
19  }  }
20    
21  /** implementation of hook-autotagging_api_insert */  /** implementation of hook-autotagging_api_insert */
22  function autotagging_tagthenet_autotagging_api_insert(&$node = NULL, &$text = NULL) {  function autotagging_tagthenet_autotagging_api_insert(&$node, &$text) {
23    $url = AUTOTAGGING_TAGTHENET_URL;    $url = AUTOTAGGING_TAGTHENET_URL;
24    $data = 'text='. urlencode($text);    $data = 'text='. urlencode($text);
25    $response = drupal_http_request($url .'?'. $data, array(), 'POST');    $response = drupal_http_request($url .'?'. $data, array(), 'POST');

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

  ViewVC Help
Powered by ViewVC 1.1.2