You are here

function fb_load in Drupal for Facebook 6.2

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

Implementation of a %wildcard_load(). http://drupal.org/node/224170

File

./fb.module, line 675

Code

function fb_load($id) {
  $query = array(
    'label' => $id,
  );
  if (fb_is_fb_admin_page()) {

    // Show disabled apps to admins.
    $query['status'] = 0;

    // status >= 0
  }
  $fb_app = fb_get_app($query);
  return $fb_app;
}