You are here

function recommendations_fb_settings in Facebook social plugins integration 7.2

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

File

plugins/fb_plugin/recommendations.inc, line 29

Code

function recommendations_fb_settings($options) {
  $form = array();
  $form['site'] = array(
    '#type' => 'textfield',
    '#title' => t('Domain'),
    '#description' => t('The domain for which to show recommendations'),
  );
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#description' => t('The width of the plugin in pixels'),
  );
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#description' => t('The height of the plugin in pixels'),
  );
  $form['header'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show the plugin header'),
    '#description' => t('Show the header in the recommendations plugin'),
  );
  $form['colorscheme'] = array(
    '#type' => 'select',
    '#title' => t('Color'),
    '#description' => t('The color scheme of the plugin'),
    '#options' => array(
      'dark' => t('dark'),
      'light' => t('light'),
    ),
  );
  $form['border_color'] = array(
    '#type' => 'textfield',
    '#title' => t('Border color'),
    '#description' => t('The border color of the plugin'),
  );
  $form['font'] = array(
    '#type' => 'select',
    '#title' => t('Font'),
    '#description' => t('The font of the plugin'),
    '#options' => array(
      'arial' => t('arial'),
      'lucida grande' => t('lucida grande'),
      'segoe ui' => t('segoe ui'),
      'tahoma' => t('tahoma'),
      'trebuchet ms' => t('trebuchet ms'),
      'verdana',
    ),
  );
  $defaults = recommendations_defaults();
  foreach ($form as $id => $f) {
    $form[$id]['#default_value'] = isset($options[$id]) ? $options[$id] : $defaults[$id];
  }
  return $form;
}