You are here

function fb_devel_fb in Drupal for Facebook 7.4

Same name and namespace in other branches
  1. 5.2 fb_devel.module \fb_devel_fb()
  2. 5 fb_devel.module \fb_devel_fb()
  3. 6.3 fb_devel.module \fb_devel_fb()
  4. 6.2 fb_devel.module \fb_devel_fb()
  5. 7.3 fb_devel.module \fb_devel_fb()

Implements hook_fb().

Log hook invocations for debugging.

File

./fb_devel.module, line 87
Makes development with Drupal for Facebook much easier. Keep this module enabled until you're confident your app works perfectly.

Code

function fb_devel_fb($op, $data, &$return) {
  $args = array(
    '%op' => $op,
    '!data' => '<pre>' . print_r($data, 1) . '</pre>',
    '!request' => '<pre>' . print_r($_REQUEST, 1) . '</pre>',
  );
  if (fb_verbose() == 'extreme') {
    watchdog(__FUNCTION__, 'hook_fb(%op) invoked with data: !data, and passed !request', $args);
  }
}