You are here

function socialmedia_widgets_element_alter_facebook_like_box in Social media 7

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

File

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

Code

function socialmedia_widgets_element_alter_facebook_like_box(&$form, $set, $element) {
  $form['facebook_page_url']['#description'] = t('The URL of the Facebook Page for this Like box. (example: http://www.facebook.com/platform) ') . $form['facebook_page_url']['#description'];
  $form['height']['#description'] = t('Leave blank to not set a height. Use <em>[socialmedia:sm-default_height]</em> to use the social media widget default.');
  $options = array(
    'true' => t('Yes'),
    'false' => t('No'),
  );
  $fields = array(
    'show_faces',
    'data_stream',
    'data_header',
  );
  foreach ($fields as $field) {
    $form[$field]['#type'] = 'radios';
    $form[$field]['#options'] = $options;
  }
  $form['show_faces']['#description'] = t('Show profile photos in the plugin.');
  $form['data_stream']['#description'] = t('Show the profile stream for the public profile.');
  $form['data_header']['#description'] = t('Show the \'Find us on Facebook\' bar at top. Only shown when either stream or faces are present.');
  $options = array(
    'light' => 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');
}