You are here

function socialmedia_widgets_element_alter_addthis_pinterest_pinit in Social media 7

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

File

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

Code

function socialmedia_widgets_element_alter_addthis_pinterest_pinit(&$form, $set, $element) {
  $options = array(
    '' => t('No counter'),
    ' pi:pinit:layout="horizontal"' => t('Horizontal'),
    ' pi:pinit:layout="vertical"' => t('Vertical'),
  );
  $form['size']['#type'] = 'select';
  $form['size']['#options'] = $options;
  $form['size']['#description'] = t('Select button size and layout');
  return $form;
}