Mercurial > defr > drupal > popups_reference
comparison popups_reference.module @ 1:ece8e4be4d6f
Fix node titles after the creation
| author | Franck Deroche <franck@defr.org> |
|---|---|
| date | Wed, 21 Jan 2009 11:34:38 +0100 |
| parents | 56772e0a00ae |
| children | 98642e828c60 |
comparison
equal
deleted
inserted
replaced
| 0:56772e0a00ae | 1:ece8e4be4d6f |
|---|---|
| 55 */ | 55 */ |
| 56 function popups_reference_nodeapi($node, $op) { | 56 function popups_reference_nodeapi($node, $op) { |
| 57 if ($op == 'insert') { | 57 if ($op == 'insert') { |
| 58 $five = time()+300; // 5 minutes in the future. | 58 $five = time()+300; // 5 minutes in the future. |
| 59 setcookie("PopupRefNid", $node->nid, $five, '/'); | 59 setcookie("PopupRefNid", $node->nid, $five, '/'); |
| 60 setcookie("PopupRefTitle", $node->title, $five, '/'); | 60 setrawcookie("PopupRefTitle", rawurlencode($node->title), $five, '/'); |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * Submit added to the the nodereference settings form. | 65 * Submit added to the the nodereference settings form. |
