function fbconnect_nodeapi in Facebook Connect 6.2
Same name and namespace in other branches
- 6 fbconnect.module \fbconnect_nodeapi()
Implements hook_nodeapi(). Change node user pictures to use the preferred fbconnect preset.
File
- ./
fbconnect.module, line 839 - Integration with Facebook Connect API.
Code
function fbconnect_nodeapi(&$node, $op) {
// Panels module uses $op = alter to render nodes.
if ($op == 'view' || $op == 'alter') {
if ($preset = variable_get('fbconnect_pic_size_nodes', '')) {
$node->fbconnect_picture_preset = $preset;
}
}
}