function fb_url_outbound_alter in Drupal for Facebook 6.2
Same name and namespace in other branches
- 6.3 fb_url_rewrite.inc \fb_url_outbound_alter()
- 7.4 fb.module \fb_url_outbound_alter()
- 7.3 fb_url_rewrite.inc \fb_url_outbound_alter()
Implementation of hook_url_outbound_alter().
2 calls to fb_url_outbound_alter()
- fb_canvas_process in ./
fb_canvas.module - This function uses regular expressions to convert links on canvas pages to URLs that begin http://apps.facebook.com/...
- fb_url_rewrite.inc in ./
fb_url_rewrite.inc - Performs custom url rewriting for Drupal for Facebook.
1 string reference to 'fb_url_outbound_alter'
- fb_canvas_process in ./
fb_canvas.module - This function uses regular expressions to convert links on canvas pages to URLs that begin http://apps.facebook.com/...
File
- ./
fb_url_rewrite.inc, line 100 - Performs custom url rewriting for Drupal for Facebook.
Code
function fb_url_outbound_alter(&$path, &$options, $original_path) {
//dpm(func_get_args(), 'fb_settings_url_rewrite_outbound'); // debug
$pre = '';
// Prefix each known value to the URL
foreach (_fb_settings_url_rewrite_prefixes() as $prefix) {
if ($value = fb_settings($prefix)) {
$pre .= $prefix . '/' . $value . '/';
}
}
$path = $pre . $path;
return $path;
}