You are here

function socialmedia_widgets_element_addthis_google_plusone in Social media 7

1 call to socialmedia_widgets_element_addthis_google_plusone()
socialmedia_widgets_element_info in ./socialmedia.widgets.inc
Implements hook_widgets_element_info().

File

./socialmedia.widgets.inc, line 544
Functions needed to execute image elements provided by Image module.

Code

function socialmedia_widgets_element_addthis_google_plusone() {
  $addthis_js = socialmedia_widgets_element_addthis_js();
  $elements['socialmedia_addthis-google-plusone'] = array(
    'label' => t('AddThis Google +1 counter button'),
    'help' => t('Resizing will make images an exact set of dimensions. This may cause images to be stretched or shrunk disproportionately.'),
    'group' => t('Social media: Google+'),
    'template' => '<a class="addthis_button_google_plusone"[?size=?]></a>',
    'add_js' => array(
      'data' => $addthis_js,
      'options' => array(
        'scope' => 'set_post',
      ),
    ),
    'form callback' => 'widgets_template_auto_form',
  );
  return $elements;
}