function subscribe_fb_settings in Facebook social plugins integration 6.2
Same name and namespace in other branches
- 7.2 plugins/fb_plugin/subscribe.inc \subscribe_fb_settings()
File
- plugins/
fb_plugin/ subscribe.inc, line 32
Code
function subscribe_fb_settings($options) {
$form = array();
$form['href'] = array(
'#type' => 'textfield',
'#title' => t('Profile URL'),
'#description' => t('Profile URL of the user to subscribe to'),
);
$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['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 = subscribe_defaults();
foreach ($form as $id => $f) {
$form[$id]['#default_value'] = isset($options[$id]) ? $options[$id] : $defaults[$id];
}
return $form;
}