function fb_get_app_options in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb.module \fb_get_app_options()
Convenience method to return a list of all known apps, suitable for form elements.
5 calls to fb_get_app_options()
- fb_actions_cron_per_user_form in ./
fb_actions.module - fb_actions_profile_fbml_form in ./
fb_actions.module - Implementation of an Action. See Actions module.
- fb_actions_ref_fbml_form in ./
fb_actions.module - Implementation of an Action.
- fb_feed_form in ./
fb_feed.module - fb_views_views_arguments in ./
fb_views.module
File
- ./
fb.module, line 384
Code
function fb_get_app_options($include_current) {
$apps = fb_get_all_apps();
$options = array();
if ($include_current) {
$options[FB_APP_CURRENT] = t('<current>');
}
foreach ($apps as $app) {
$options[$app->nid] = $app->title;
}
return $options;
}