You are here

function fb_tab_write_config in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.3 fb_tab.module \fb_tab_write_config()
1 call to fb_tab_write_config()
fb_tab_config_form_submit in ./fb_tab.module
Submit handler for tab config form.

File

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

Code

function fb_tab_write_config(&$row) {
  if (!isset($row['created'])) {
    $row['created'] = time();
  }
  $row['data'] = serialize($row['data']);
  return drupal_write_record('fb_tab', $row, isset($row['fb_tab_id']) ? array(
    'fb_tab_id',
  ) : NULL);
}