function theme_janrain_capture_share_icons in Janrain Registration 7.3
Same name and namespace in other branches
- 7.4 janrain_capture.module \theme_janrain_capture_share_icons()
- 7.2 janrain_capture.module \theme_janrain_capture_share_icons()
Returns markup for enabled social share provider icons.
1 theme call to theme_janrain_capture_share_icons()
- theme_janrain_capture_share_button in ./
janrain_capture.module - Returns markup for the "share" button.
File
- ./
janrain_capture.module, line 934 - This module implements authentication endpoints for Janrain Capture.
Code
function theme_janrain_capture_share_icons($variables) {
$args = $variables['args'];
$node = $variables['node'];
$conf = variable_get('janrain_capture_share', array());
$providers = $conf['nodes']['providers'];
$icons = '';
foreach ($providers as $provider) {
$icons .= theme('janrain_capture_icon', array(
'args' => $args,
'provider' => $provider,
'size' => 'small',
'node' => $node,
));
}
return $icons;
}