function fb_tab_config_form_submit in Drupal for Facebook 6.3
Same name and namespace in other branches
- 7.3 fb_tab.module \fb_tab_config_form_submit()
Submit handler for tab config form.
File
- ./
fb_tab.module, line 368 - This module provides support for "Profile Tabs" that can be added to facebook pages (no longer allowed for user profiles).
Code
function fb_tab_config_form_submit($form, &$form_state) {
if ($profile_id = $form_state['values']['profile_id']) {
fb_tab_write_config($form_state['values']);
$data = fb_fql_query($GLOBALS['_fb'], "SELECT page_id, name, pic_small, page_url, type FROM page WHERE page_id={$profile_id}");
// FQL, no {curly_brackets}
drupal_set_message(t('The tab settings for <a href="!url">%page</a> have been updated.', array(
'!url' => $data[0]['page_url'],
'%page' => $data[0]['name'],
)));
}
}