You are here

function socialmedia_widgets_element_alter_facebook_like_button in Social media 7

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

File

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

Code

function socialmedia_widgets_element_alter_facebook_like_button(&$form, $set, $element) {
  $options = array(
    '<none>' => t('Standard'),
    'button_count' => t('Button count'),
    'box_count' => t('Box count'),
  );
  $form['layout']['#type'] = 'select';
  $form['layout']['#options'] = $options;
  $form['layout']['#description'] = t('Select button and count style');
  $options = array(
    'true' => t('Yes'),
    'false' => t('No'),
  );
  $fields = array(
    'send_button',
    'show_faces',
  );
  foreach ($fields as $field) {
    $form[$field]['#type'] = 'radios';
    $form[$field]['#options'] = $options;
  }
  $form['send_button']['#description'] = t('Include a Send button');
  $form['show_faces']['#description'] = t('Show profile photos in the plugin');
  $options = array(
    '<none>' => t('Like'),
    'recommend' => t('Recommend'),
  );
  $form['action']['#title'] = t('Verb to display');
  $form['action']['#type'] = 'select';
  $form['action']['#options'] = $options;
  $form['action']['#description'] = t('The verb to display in the button');
  $options = array(
    '<none>' => t('Light'),
    'dark' => t('Dark'),
  );
  $form['color_scheme']['#type'] = 'select';
  $form['color_scheme']['#options'] = $options;
  $form['color_scheme']['#description'] = t('The color scheme of the plugin');
  $options = array(
    '<none>' => t('Default'),
    'arial' => 'arial',
    'lucida grande' => 'lucida grande',
    'segoe ui' => 'segoe ui',
    'tahoma' => 'tahoma',
    'trebuchet ms' => 'trebuchet ms',
    'verdana' => 'verdana',
  );
  $form['font']['#type'] = 'select';
  $form['font']['#options'] = $options;
  $form['font']['#description'] = t('The font of the plugin');
}