/[drupal]/contributions/modules/fb/fb_canvas.module
ViewVC logotype

Diff of /contributions/modules/fb/fb_canvas.module

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

revision 1.11, Thu Jul 31 04:47:31 2008 UTC revision 1.12, Fri Aug 1 07:25:50 2008 UTC
# Line 399  function fb_canvas_process($output, $add Line 399  function fb_canvas_process($output, $add
399        // would be accomplished with something like:        // would be accomplished with something like:
400        // http://drupal.org/node/102679.  In the meantime, this may help for        // http://drupal.org/node/102679.  In the meantime, this may help for
401        // canvas pages only.        // canvas pages only.
402        $patterns[] = '|([\d]*)@facebook|';  
403          // Regexp avoids "1234@facebook" (surrounded by quotes) because that can
404          // appear in some forms.  Also avoids 1234@facebook.com, which can also
405          // appear in forms because it is used in authmaps.  TODO: investigate
406          // the efficiency of this regexp (and/or make it optional)
407          $patterns[] = '|(?<!["\d])([\d]*)@facebook(?!\.com)|';
408        $replacements[] = '<fb:name uid=$1 linked=false ifcantsee="$1@facebook" useyou=false />';        $replacements[] = '<fb:name uid=$1 linked=false ifcantsee="$1@facebook" useyou=false />';
409    
410          }          }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.2