/[drupal]/contributions/modules/freelinking/plugins/freelinking_nid.inc
ViewVC logotype

Diff of /contributions/modules/freelinking/plugins/freelinking_nid.inc

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

revision 1.1.2.8, Wed Nov 4 23:04:15 2009 UTC revision 1.1.2.9, Thu Nov 12 08:03:15 2009 UTC
# Line 28  function freelinking_nid_callback($targe Line 28  function freelinking_nid_callback($targe
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));

Legend:
Removed from v.1.1.2.8  
changed lines
  Added in v.1.1.2.9

  ViewVC Help
Powered by ViewVC 1.1.2