function like_fb_settings in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 plugins/fb_plugin/like.inc \like_fb_settings()
File
- plugins/
fb_plugin/ like.inc, line 34
Code
function like_fb_settings($options) {
$form = array();
$form['send'] = array(
'#type' => 'checkbox',
'#title' => t('Send button'),
'#description' => t('Include a Send button with the Like button'),
);
$form['layout'] = array(
'#type' => 'select',
'#title' => t('Layout style'),
'#description' => t('Determines the size and the amount of the social context next to the button'),
'#options' => array(
'standard' => t('standard'),
'button_count' => t('button_count'),
'box_count' => t('box_count'),
),
);
$form['show_faces'] = array(
'#type' => 'checkbox',
'#title' => t('Show faces'),
'#description' => t('Show profiles pictures below the button'),
);
$form['width'] = array(
'#type' => 'textfield',
'#title' => t('Width'),
'#description' => t('The width of the plugin in pixel'),
);
$form['action'] = array(
'#type' => 'select',
'#title' => t('Verb'),
'#description' => t('The verb to display in the button'),
'#options' => array(
'like' => t('like'),
'recommend' => t('recommend'),
),
);
$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' => t('verdana'),
),
);
$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 = like_defaults();
foreach ($form as $id => $f) {
$form[$id]['#default_value'] = isset($options[$id]) ? $options[$id] : $defaults[$id];
}
return $form;
}