function activityfeed_fb_settings in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 plugins/fb_plugin/activityfeed.inc \activityfeed_fb_settings()
File
- plugins/
fb_plugin/ activityfeed.inc, line 31
Code
function activityfeed_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 widget in pixels'),
);
$form['height'] = array(
'#type' => 'textfield',
'#title' => t('Height'),
'#description' => t('The height of the widget in pixels'),
);
$form['header'] = array(
'#type' => 'checkbox',
'#title' => t('Show the widget header'),
'#description' => t('Show the header in the recommendations widget'),
);
$form['colorscheme'] = array(
'#type' => 'select',
'#title' => t('Color'),
'#description' => t('The color scheme of the widget'),
'#options' => array(
'dark' => t('dark'),
'light' => t('light'),
),
);
$form['font'] = array(
'#type' => 'select',
'#title' => t('Font'),
'#description' => t('The font of the widget'),
'#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['border_color'] = array(
'#type' => 'textfield',
'#title' => t('Border color'),
'#description' => t('The border color of the widget'),
);
$form['recommendations'] = array(
'#type' => 'checkbox',
'#title' => t('Recommendations'),
'#description' => t('Show the header in the recommendations widget'),
);
$defaults = activityfeed_defaults();
foreach ($form as $id => $f) {
$form[$id]['#default_value'] = isset($options[$id]) ? $options[$id] : $defaults[$id];
}
return $form;
}