You are here

function fb_invoke in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 5.2 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.

29 calls to fb_invoke()
fb_admin_app_page in ./fb.admin.inc
fb_admin_get_app_info in ./fb.admin.inc
fb_admin_page in ./fb.admin.inc
Drupal page callback.
fb_admin_set_properties_form in ./fb.admin.inc
fb_admin_set_properties_form_submit in ./fb.admin.inc
Confirm form submit function. We don't use fb_app_set_app_properties, because fb_app.module may not be enabled.

... See full list

File

./fb.module, line 1348
This is the core required module of Drupal for Facebook.

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) {
      if (isset($data['fb_app'])) {
        fb_log_exception($e, t('Exception calling %function(%op) (!app)', array(
          '%function' => $function,
          '%op' => $op,
          '%label' => $data['fb_app']->label,
          '%id' => $data['fb_app']->id,
          '!app' => l($data['fb_app']->label, FB_PATH_ADMIN_APPS . '/' . $data['fb_app']->label),
        )));
      }
      else {
        fb_log_exception($e, t('Exception calling %function(%op)', array(
          '%function' => $function,
          '%op' => $op,
        )));
      }
    }
  }
  return $return;
}