You are here

function fb_invoke in Drupal for Facebook 7.4

Same name and namespace in other branches
  1. 5.2 fb.module \fb_invoke()
  2. 6.3 fb.module \fb_invoke()
  3. 6.2 fb.module \fb_invoke()
  4. 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.

... See full list

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