| 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 |
} |
} |