You are here

function fb_invoke in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 6.3 fb.module \fb_invoke()
  2. 6.2 fb.module \fb_invoke()
  3. 7.4 fb.module \fb_invoke()
  4. 7.3 fb.module \fb_invoke()

Invoke hook_fb.

13 calls to fb_invoke()
fb_api_init in ./fb.module
Include the necessary facebook-platform code and initialize the API object.
fb_app_event_cb in ./fb_app.module
Callback for FB_APP_PATH_EVENT.
fb_app_get_app_properties in ./fb_app.module
Get properties from Facebook. Fills in the data that we need to know by querying facebook.
fb_app_set_app_properties in ./fb_app.module
fb_canvas_footer in ./fb_canvas.module

... See full list

File

./fb.module, line 577

Code

function fb_invoke($op, $data = NULL, $return = NULL) {
  foreach (module_implements(FB_HOOK) as $name) {
    $function = $name . '_' . FB_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;
}