function theme_fb_markup in Drupal for Facebook 6.3
Same name and namespace in other branches
- 7.4 fb.theme.inc \theme_fb_markup()
- 7.3 fb.theme.inc \theme_fb_markup()
1 theme call to theme_fb_markup()
- fb_connect_block in ./
fb_connect.module - Implements hook_block().
File
- ./
fb.theme.inc, line 12
Code
function theme_fb_markup($not_connected_markup, $connected_markup, $options = array()) {
if ($not_connected_markup == $connected_markup) {
return $not_connected_markup;
}
// Merge in defaults
$options += array(
'wrapper' => 'div',
);
$output = '';
if ($not_connected_markup) {
$output .= '<' . $options['wrapper'] . ' class=fb_not_connected>' . $not_connected_markup . '</' . $options['wrapper'] . '>';
}
if ($connected_markup) {
$output .= '<' . $options['wrapper'] . ' class=fb_connected>' . $connected_markup . '</' . $options['wrapper'] . '>';
}
return $output;
}