| 1 |
<?php |
<?php |
| 2 |
// $Id: content_refresh.module,v 1.9 2009/08/15 18:42:45 yaph Exp $ |
// $Id: content_refresh.module,v 1.10 2009/08/21 19:47:13 yaph Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 107 |
case 'insert': |
case 'insert': |
| 108 |
case 'update': |
case 'update': |
| 109 |
$nid = $a1['nid']; |
$nid = $a1['nid']; |
| 110 |
$uid = $a1['uid']; |
$uid = (int) $a1['uid']; |
| 111 |
break; |
break; |
| 112 |
case 'publish': |
case 'publish': |
| 113 |
case 'unpublish': |
case 'unpublish': |
| 114 |
case 'delete': |
case 'delete': |
| 115 |
$nid = $a1->nid; |
$nid = $a1->nid; |
| 116 |
$uid = $a1->uid; |
$uid = (int) $a1->uid; |
| 117 |
break; |
break; |
| 118 |
} |
} |
| 119 |
|
|
| 120 |
if ($nid !== false && 0 === $uid) { |
if ($nid !== false && 0 === $uid) { |
| 121 |
// retrieve the absolute url for the node |
// retrieve the absolute url for the node |
| 122 |
$options = array('absolute' => TRUE); |
$options = array('absolute' => TRUE); |