You are here

function fb_get_app_title in Drupal for Facebook 6.2

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

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

File

./fb.module, line 486

Code

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