function theme_views_fb_teasers in Drupal for Facebook 5
Same name and namespace in other branches
- 5.2 fb_views.module \theme_views_fb_teasers()
- 6.3 fb_views/fb_views.module \theme_views_fb_teasers()
- 6.2 fb_views/fb_views.module \theme_views_fb_teasers()
- 7.3 fb_views/fb_views.module \theme_views_fb_teasers()
File
- ./fb_views.module, line 205
Code
function theme_views_fb_teasers($view, $nodes, $type) {
foreach ($nodes as $data) {
$node = node_load($data->nid);
$output .= '<div style="padding: 10px 20px 10px 5px; border-bottom: 1px solid #cccccc;">';
$output .= '<div style="font-weight: bold; font-size: 10px;">' . l($node->title, 'node/' . $data->nid, array(), NULL, NULL, FALSE) . "</div>";
$node = node_build_content($node, TRUE, FALSE);
$output .= drupal_render($node->content);
$output .= "</div>\n";
}
return $output;
}