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

Diff of /contributions/modules/cocomment/cocomment.module

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

revision 1.4.2.1, Wed Jan 16 22:20:42 2008 UTC revision 1.4.2.2, Thu Jan 17 10:12:42 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: cocomment.module,v 1.4 2008/01/15 14:18:14 sanduhrs Exp $  // $Id: cocomment.module,v 1.4.2.1 2008/01/16 22:20:42 sanduhrs Exp $
3    
4  /**  /**
5   * CoComment integration   * CoComment integration
# Line 51  function cocomment_comment($form, $op) { Line 51  function cocomment_comment($form, $op) {
51      drupal_add_js('coco = '. drupal_to_js($coco), 'inline');      drupal_add_js('coco = '. drupal_to_js($coco), 'inline');
52    
53      //add cocomment's enabler.js to the site      //add cocomment's enabler.js to the site
54      $item['cocomment'] = array(      //when submission is possible
55        '#value' => '<script type="text/javascript" id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js"></script>',      if ($form['submit']) {
56      );        $item['cocomment'] = array(
57            '#value' => '<script type="text/javascript" id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js"></script>',
58          );
59        }
60    
61      return $item;      return $item;
62    }    }

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.4.2.2

  ViewVC Help
Powered by ViewVC 1.1.2