function fbconnect_nodeapi in Facebook Connect 6
Same name and namespace in other branches
- 6.2 fbconnect.module \fbconnect_nodeapi()
File
- ./
fbconnect.module, line 882
Code
function fbconnect_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if ($op == 'validate' && $a3['fbconnect_feed']['#post']['fbconnect_feed']) {
$_SESSION['fbconnect_feed']['submit'] = TRUE;
}
if ($op == 'insert' && $_SESSION['fbconnect_feed']['submit'] === TRUE) {
$_SESSION['fbconnect_feed'] = array(
'type' => 'node',
'title' => $node->title,
'nodeurl' => url('node/' . $node->nid, array(
'absolute' => TRUE,
)),
);
}
}