You are here

function fbconnect_comment_feed_submit in Facebook Connect 5

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

Stock informations used by the facebook feed javascript function.

File

./fbconnect.module, line 774
This module allows site visitors to connect and register with facebook account

Code

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