| 28 |
|
|
| 29 |
if ($title) { // I got your freelink right here |
if ($title) { // I got your freelink right here |
| 30 |
$title = $target['text'] ? $target['text'] : $title; |
$title = $target['text'] ? $target['text'] : $title; |
| 31 |
$replacement = array($title, 'node/' . $target['dest']); |
|
| 32 |
|
if (!$target['tooltip']) { |
| 33 |
|
$target['tooltip'] = freelinking_internal_tooltip('node', $target['dest']); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
$replacement = array($title, 'node/' . $target['dest'], array( |
| 37 |
|
'attributes' => array('title' => $target['tooltip']), |
| 38 |
|
)); |
| 39 |
} // endif a title was found matching the target |
} // endif a title was found matching the target |
| 40 |
else { // Didn't find one. goto fail. |
else { // Didn't find one. goto fail. |
| 41 |
$replacement = t('Invalid Node ID !nid', array('!nid' => $nid)); |
$replacement = t('Invalid Node ID !nid', array('!nid' => $nid)); |