You are here

function fb_tab_get_page_config in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.3 fb_tab.module \fb_tab_get_page_config()
2 calls to fb_tab_get_page_config()
fb_tab_config_form in ./fb_tab.module
Build the tab config form. Invokes hook_fb_tab() to get the custom settings.
fb_tab_view in ./fb_tab.module
Another module provides the contents of the tab depending on the context that we give it (who is calling it, etc.)

File

./fb_tab.module, line 394
This module provides support for "Profile Tabs" that can be added to facebook pages (no longer allowed for user profiles).

Code

function fb_tab_get_page_config($fb_app, $profile_id) {
  $result = db_query("SELECT * FROM {fb_tab} WHERE label = '%s' AND profile_id = %d", $fb_app->label, $profile_id);
  $row = db_fetch_array($result);
  if ($row) {
    $row['data'] = unserialize($row['data']);
    return $row;
  }
  else {
    return array();
  }
}