You are here

function fb_facebook_user in Drupal for Facebook 7.4

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

These are functions from fb-3.x that no longer exist in fb-4.x. Rather than let php fatal error, we define them here to warn that third-party modules are not upgraded.

File

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

Code

function fb_facebook_user() {
  throw new Exception(t('!function() called.  This function is part of modules/fb 3.x, and is not defined in modules/fb 4.x.  Your code that relies on modules/fb 3.x needs to be upgraded.', array(
    '!function' => __FUNCTION__,
  )));
}