You are here

function theme_janrain_capture_share_icons in Janrain Registration 7.4

Same name and namespace in other branches
  1. 7.2 janrain_capture.module \theme_janrain_capture_share_icons()
  2. 7.3 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 1073
This module implements authentication endpoints for Janrain Capture.

Code

function theme_janrain_capture_share_icons($variables) {
  $args = $variables['args'];
  $node = $variables['node'];
  $janrain_share_settings = variable_get('janrain_capture_share', array());
  $providers = $janrain_share_settings['nodes']['providers'];
  $icons = '';
  foreach ($providers as $provider) {
    $icons .= theme('janrain_capture_icon', array(
      'args' => $args,
      'provider' => $provider,
      'size' => 'small',
      'node' => $node,
    ));
  }
  return $icons;
}