You are here

function fbconnect_comment_feed_submit in Facebook Connect 6

Same name and namespace in other branches
  1. 5 fbconnect.module \fbconnect_comment_feed_submit()

Stock informations used by the facebook feed javascript function.

1 string reference to 'fbconnect_comment_feed_submit'
fbconnect_form_alter in ./fbconnect.module
Impletementation of hook_form_alter.

File

./fbconnect.module, line 332

Code

function fbconnect_comment_feed_submit($form, &$form_state) {
  if ($form_state['values']['fbconnect_feed']) {
    $node = node_load($form_state['values']['nid']);
    $_SESSION['fbconnect_feed'] = array(
      'type' => 'comment',
      'comment' => $form_state['values']['comment'],
      'title' => $node->title,
      'nodeurl' => url('node/' . $node->nid, array(
        'absolute' => TRUE,
      )),
    );
  }
}