You are here

function fb_get_app_options in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb.module \fb_get_app_options()

Convenience method to return a list of all known apps, suitable for form elements.

8 calls to fb_get_app_options()
action_fb_set_profile_fbml in ./fb_actions.module
Implementation of an Action. See Actions module.
action_fb_set_ref_fbml in ./fb_actions.module
Implementation of an Action.
action_fb_write_minifeed in ./fb_actions.module
Implementation of an Action. See Actions module.
fb_actions_cron_per_user_form in ./fb_actions.module
fb_actions_minifeed_form in ./fb_actions.module

... See full list

File

./fb.module, line 311

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;
}