function theme_fb_app in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb_app.module \theme_fb_app()
- 6.3 fb_app.module \theme_fb_app()
- 6.2 fb_app.module \theme_fb_app()
- 7.3 fb_app.module \theme_fb_app()
1 theme call to theme_fb_app()
- fb_app_view in ./
fb_app.module
File
- ./
fb_app.module, line 255 - Defines a custom node type that stores a facebook application configuration.
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,
t('Secret') => $fb_app->secret,
);
foreach ($props_map as $name => $key) {
if ($fb_app->{$key}) {
$data[$name] = $fb_app->{$key};
}
}
$output .= theme('dl', $data);
return $output;
}