You are here

function fb_social_activityfeed_settings_form in Facebook social plugins integration 6

File

./fb_social.widgets.inc, line 141

Code

function fb_social_activityfeed_settings_form() {
  $form = array();
  $form['fb_social_activityfeed_site'] = array(
    '#type' => 'textfield',
    '#title' => t('Domain'),
    '#description' => t('The domain for which to show recommendations'),
    '#default_value' => variable_get('fb_social_activityfeed_site', ''),
  );
  $form['fb_social_activityfeed_width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#description' => t('The width of the widget in pixels'),
    '#default_value' => variable_get('fb_social_activityfeed_width', 300),
  );
  $form['fb_social_activityfeed_height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
    '#description' => t('The height of the widget in pixels'),
    '#default_value' => variable_get('fb_social_activityfeed_height', 300),
  );
  $form['fb_social_activityfeed_header'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show the widget header'),
    '#description' => t('Show the header in the recommendations widget'),
    '#default_value' => variable_get('fb_social_activityfeed_header', 1),
  );
  $form['fb_social_activityfeed_colorscheme'] = array(
    '#type' => 'select',
    '#title' => t('Color'),
    '#description' => t('The color scheme of the widget'),
    '#default_value' => variable_get('fb_social_activityfeed_colorscheme', 'light'),
    '#options' => array(
      'dark' => t('dark'),
      'light' => t('light'),
    ),
  );
  $form['fb_social_activityfeed_border_color'] = array(
    '#type' => 'textfield',
    '#title' => t('Border color'),
    '#description' => t('The border color of the widget'),
    '#default_value' => variable_get('fb_social_activityfeed_border_color', ''),
  );
  $form['fb_social_activityfeed_font'] = array(
    '#type' => 'select',
    '#title' => t('Font'),
    '#description' => t('The font of the widget'),
    '#default_value' => variable_get('fb_social_activityfeed_font', 'arial'),
    '#options' => array(
      'arial' => t('arial'),
      'lucida grande' => t('lucida grande'),
      'segoe ui' => t('segoe ui'),
      'tahoma' => t('tahoma'),
      'trebuchet ms' => t('trebuchet ms'),
      'verdana',
    ),
  );
  $form['fb_social_activityfeed_recommendations'] = array(
    '#type' => 'checkbox',
    '#title' => t('Show the widget header'),
    '#description' => t('Show the header in the recommendations widget'),
    '#default_value' => variable_get('fb_social_activityfeed_recommendations', 1),
  );
  $form = system_settings_form($form);
  return $form;
}