function fb_social_recommendations_settings_form in Facebook social plugins integration 6
File
- ./
fb_social.widgets.inc, line 72
Code
function fb_social_recommendations_settings_form() {
$form = array();
$form['fb_social_recommendation_site'] = array(
'#type' => 'textfield',
'#title' => t('Domain'),
'#description' => t('The domain for which to show recommendations'),
'#default_value' => variable_get('fb_social_recommendation_site', ''),
);
$form['fb_social_recommendation_width'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#description' => t('The width of the widget in pixels'),
'#default_value' => variable_get('fb_social_recommendation_width', 300),
);
$form['fb_social_recommendation_height'] = array(
'#type' => 'textfield',
'#title' => t('Height'),
'#description' => t('The height of the widget in pixels'),
'#default_value' => variable_get('fb_social_recommendation_height', 300),
);
$form['fb_social_recommendation_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_recommendation_header', 1),
);
$form['fb_social_recommendation_colorscheme'] = array(
'#type' => 'select',
'#title' => t('Color'),
'#description' => t('The color scheme of the widget'),
'#default_value' => variable_get('fb_social_recommendation_colorscheme', 'light'),
'#options' => array(
'dark' => t('dark'),
'light' => t('light'),
),
);
$form['fb_social_recommendation_border_color'] = array(
'#type' => 'textfield',
'#title' => t('Border color'),
'#description' => t('The border color of the widget'),
'#default_value' => variable_get('fb_social_recommendation_border_color', ''),
);
$form['fb_social_recommendation_font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#description' => t('The font of the widget'),
'#default_value' => variable_get('fb_social_recommendation_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 = system_settings_form($form);
return $form;
}