You are here

function fbconnect_stream_publish_node_insert in Facebook Connect 7.2

Same name and namespace in other branches
  1. 8.2 fbconnect_stream_publish/fbconnect_stream_publish.module \fbconnect_stream_publish_node_insert()

Implements hook_node_insert().

File

fbconnect_stream_publish/fbconnect_stream_publish.module, line 42

Code

function fbconnect_stream_publish_node_insert($node) {
  if (isset($_SESSION['fbconnect_feed']) && isset($_SESSION['fbconnect_feed']['submit']) && $_SESSION['fbconnect_feed']['submit'] === TRUE) {
    $_SESSION['fbconnect_feed'] = array(
      'type' => 'node',
      'title' => $node->title,
      'nodeurl' => url('node/' . $node->nid, array(
        'absolute' => TRUE,
      )),
    );
  }
}