function fb_feed_fb_feed in Drupal for Facebook 5.2
Implementation of hook_fb_feed
File
- ./
fb_feed.module, line 963 - Helpers for Facebook feeds (http://wiki.developers.facebook.com/index.php/New_Design_Feed_Wall)
Code
function fb_feed_fb_feed($fb_app, $op, &$return, $data) {
if ($op == FB_FEED_OP_TOKEN_ALTER) {
dpm(func_get_args(), "fb_feed_fb_feed({$op})");
// In this hook, we have a chance to add tokens before a user action is
// published.
if ($return['tokens']['nid'] && $return['tokens']['title'] && $return['tokens']['fb-app-url']) {
// Add a link to a canvas page
$return['tokens']['fb-feed-node-link'] = l($return['tokens']['title-raw'], $return['tokens']['fb-app-url'] . '/node/' . $return['tokens']['nid'], array(), NULL, NULL, NULL, TRUE);
}
if ($return['tokens']['fb-app-title'] && $return['tokens']['fb-app-url']) {
$return['tokens']['fb-feed-app-link'] = l($return['tokens']['fb-app-title'], $return['tokens']['fb-app-url'], array(), NULL, NULL, NULL, TRUE);
}
}
}