You are here

function fb_get_app_title in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb.module \fb_get_app_title()
  2. 6.2 fb.module \fb_get_app_title()

Will return a human-readable name if the fb_app module supports it, or fb_admin_get_app_info($fb_app) has been called. However we don't take the relatively expensive step of calling that ourselves.

File

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

Code

function fb_get_app_title($fb_app) {
  if (isset($fb_app->title)) {
    return $fb_app->title;
  }
  elseif (isset($fb_app->name)) {
    return $fb_app->name;
  }
  else {
    return $fb_app->label;
  }
}