function fb_tab_get_page_config in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.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 454 - 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) {
$row = db_query("SELECT * FROM {fb_tab} WHERE label = :label AND profile_id = :pid", array(
':label' => $fb_app->label,
':pid' => $profile_id,
))
->fetchAssoc();
if ($row) {
$row['data'] = unserialize($row['data']);
return $row;
}
else {
return array();
}
}