function fb_invoke in Drupal for Facebook 7.4
Same name and namespace in other branches
- 5.2 fb.module \fb_invoke()
- 6.3 fb.module \fb_invoke()
- 6.2 fb.module \fb_invoke()
- 7.3 fb.module \fb_invoke()
Invoke third-party hooks.
7 calls to fb_invoke()
- fb_ajax_event in ./
fb.module - Menu callback for ajax event.
- fb_init in ./
fb.module - fb_token_invalid in ./
fb.module - When a token is known to have expired, this function flags it no longer valid. It will no longer be a choice in admin forms.
- fb_user_fb in ./
fb_user.module - Implements hook_fb().
- fb_user_token in ./
fb.module - The user-specific token allows individual users to post to their own feeds.
File
- ./
fb.module, line 1639
Code
function fb_invoke($op, $data = NULL, $return = NULL, $hook = 'fb') {
foreach (module_implements($hook) as $name) {
$function = $name . '_' . $hook;
try {
$function($op, $data, $return);
} catch (Exception $e) {
fb_log_exception($e, t('Exception calling %function(%op)', array(
'%function' => $function,
'%op' => $op,
)));
}
}
return $return;
}