You are here

function fb_invoke in Drupal for Facebook 6.2

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

Invoke hook_fb.

18 calls to fb_invoke()
fb_admin_app_page in ./fb.admin.inc
fb_admin_get_app_properties in ./fb.admin.inc
Get properties from Facebook. Fills in the data that we need to know by querying facebook.
fb_admin_page in ./fb.admin.inc
Drupal page callback.
fb_admin_set_app_properties in ./fb.admin.inc
fb_api_init in ./fb.module
Include the necessary facebook-platform code and initialize the API object.

... See full list

File

./fb.module, line 753

Code

function fb_invoke($op, $data = NULL, $return = NULL, $hook = FB_HOOK) {
  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;
}