You are here

function socialmedia_widgets_element_alter_addthis_google_plusone in Social media 7

1 call to socialmedia_widgets_element_alter_addthis_google_plusone()
socialmedia_widgets_element_form_alter in ./socialmedia.widgets.inc

File

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

Code

function socialmedia_widgets_element_alter_addthis_google_plusone(&$form, $set, $element) {
  $options = array(
    ' g:plusone:size="standard"' => t('Standard'),
    ' g:plusone:size="small"' => t('Small'),
    ' g:plusone:size="medium"' => t('Medium'),
    ' g:plusone:size="tall"' => t('Tall'),
  );
  $form['size']['#type'] = 'select';
  $form['size']['#options'] = $options;
  $form['size']['#description'] = t('Select button size and layout');
  return $form;
}