You are here

function fb_get_app_data in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 6.3 fb.module \fb_get_app_data()
  2. 7.3 fb.module \fb_get_app_data()

Convenience method for other modules to attach data to the fb_app object.

It is assumed the fb_app implementation will fill in the data field. We really should clean up the separation between modules, or merge fb_app.module into this one.

15 calls to fb_get_app_data()
fb_admin_app_page in ./fb.admin.inc
fb_admin_set_app_properties in ./fb.admin.inc
fb_app_edit_form in ./fb_app.admin.inc
Builds the form used to edit an application.
fb_app_set_app_properties in ./fb_app.admin.inc
Sets callback URLs and other properties of a facebook app. Calls the facebook
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().

... See full list

File

./fb.module, line 474

Code

function fb_get_app_data(&$fb_app) {
  if (!isset($fb_app->fb_app_data)) {
    $fb_app->fb_app_data = isset($fb_app->data) ? unserialize($fb_app->data) : array();
  }
  return $fb_app->fb_app_data;
}