| 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 |
| 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 |
} |
} |