function fb_admin_app_save in Drupal for Facebook 7.4
Save application to fb_application table.
1 call to fb_admin_app_save()
File
- ./
fb.admin.inc, line 1057
Code
function fb_admin_app_save($fb_app) {
$fb_app['sdata'] = serialize($fb_app['data']);
// Serialize for database.
$result = db_merge('fb_application')
->key(array(
'fba' => $fb_app['fba'],
))
->fields(array(
'fba' => $fb_app['fba'],
'secret' => $fb_app['secret'],
'namespace' => $fb_app['namespace'],
'title' => $fb_app['title'],
'status' => $fb_app['status'],
'sdata' => empty($fb_app['data']) ? NULL : serialize($fb_app['data']),
))
->execute();
if ($result) {
return $fb_app;
}
}