function theme_fb_app in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb_app.module \theme_fb_app()
- 5 fb_app.module \theme_fb_app()
- 6.3 fb_app.module \theme_fb_app()
- 7.3 fb_app.module \theme_fb_app()
File
- ./
fb_app.module, line 199 - 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('API Key') => $fb_app->apikey,
);
foreach ($props_map as $name => $key) {
if (isset($fb_app->{$key})) {
$data[$name] = $fb_app->{$key};
}
}
$output = theme('dl', $data);
return $output;
}