You are here

function facepile_fb_settings in Facebook social plugins integration 7.2

Same name and namespace in other branches
  1. 6.2 plugins/fb_plugin/facepile.inc \facepile_fb_settings()

File

plugins/fb_plugin/facepile.inc, line 27

Code

function facepile_fb_settings($options) {
  $form = array();
  $form['href'] = array(
    '#type' => 'textfield',
    '#title' => t('URL'),
    '#description' => t('If you want the Facepile to display friends who have liked your page, specify the URL of the page here. If you want the Facepile to display users who have signed up for your site leave this empty.'),
  );
  $form['size'] = array(
    '#type' => 'select',
    '#title' => t('Layout style'),
    '#description' => t('Determines the size and the images and social context in the facepile'),
    '#options' => array(
      'small' => t('Small'),
      'large' => t('large'),
    ),
  );
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#description' => t('The width of the widget in pixels'),
  );
  $form['numrows'] = array(
    '#type' => 'textfield',
    '#title' => t('Num rows'),
    '#description' => t('The maximum number of rows of profile pictures to show'),
  );
  $form['colorscheme'] = array(
    '#type' => 'select',
    '#title' => t('Color'),
    '#description' => t('The color scheme of the plugin'),
    '#options' => array(
      'dark' => t('dark'),
      'light' => t('light'),
    ),
  );
  $defaults = facepile_defaults();
  foreach ($form as $id => $f) {
    $form[$id]['#default_value'] = isset($options[$id]) ? $options[$id] : $defaults[$id];
  }
  return $form;
}