You are here

function theme_fb_app in Drupal for Facebook 7.3

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

File

./fb_app.module, line 184
Implementation of Drupal for Facebook application.

Code

function theme_fb_app($fb_app) {

  // Get known properties
  $props_map = fb_invoke(FB_OP_LIST_PROPERTIES, array(
    'fb_app' => $fb_app,
  ), array());
  $data = array(
    t('Label') => $fb_app->label,
    t('App ID') => $fb_app->id,
  );
  foreach ($props_map as $name => $key) {
    if (isset($fb_app->{$key})) {
      $data[$name] = $fb_app->{$key};
    }
  }
  $output = theme('dl', $data);
  return $output;
}