function fb_feed_deactivate_confirm_submit in Drupal for Facebook 5.2
File
- ./
fb_feed.module, line 78 - Helpers for Facebook feeds (http://wiki.developers.facebook.com/index.php/New_Design_Feed_Wall)
Code
function fb_feed_deactivate_confirm_submit($form_id, $values) {
$success = fb_feed_deactivate_template($values['fb_app_nid'], $values['bundle_id']);
if ($success && $values['nid']) {
db_query("UPDATE {fb_feed_template} SET bundle_id=0 WHERE nid=%d", $values['nid']);
}
if ($success) {
drupal_set_message(t('The template %bundle_id has been deactivated.', array(
'%bundle_id' => $values['bundle_id'],
)));
}
else {
drupal_set_message(t('The template %bundle_id could not be deactivated.', array(
'%bundle_id' => $values['bundle_id'],
)), 'error');
}
return 'node/' . $values['fb_app_nid'] . '/fb_feed/templates';
}